-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathIBulkLoadUsersService.cs
24 lines (22 loc) · 1.15 KB
/
IBulkLoadUsersService.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2023 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.
using AuthPermissions.BaseCode;
using AuthPermissions.BaseCode.SetupCode;
using StatusGeneric;
namespace AuthPermissions.BulkLoadServices
{
/// <summary>
/// Bulk load AuthUsers
/// </summary>
public interface IBulkLoadUsersService
{
/// <summary>
/// This allows you to add a series of users with their roles and the tenant (if <see cref="AuthPermissionsOptions.TenantType"/> says tenants are used
/// </summary>
/// <param name="userDefinitions">A list of <see cref="BulkLoadUserWithRolesTenant"/> containing the information on users and what auth roles they have.
/// In this case the UserId must be filled in with the authorized users' UserId, or the <see cref="IFindUserInfoService"/> can find a user's ID
/// </param>
/// <returns>A status so that errors can be returned</returns>
Task<IStatusGeneric> AddUsersRolesToDatabaseAsync(List<BulkLoadUserWithRolesTenant> userDefinitions);
}
}