GetInternalUsersWithPermissions() [UserManager]
Get a list of internal users
Description
The GetInternalUsersWithPermissions() method is used to get a list of internal users. Current user Id (internalAdminUserId) must be passed as a parameter to filter the user list to only services that the current user has ReadUser permission.
Package Details
Interface
IUserManager
Syntax
await _userManager.GetInternalUsersWithPermission(int internalAdminUserId, int page, int pageSize)
Returns
Task<UserServiceInfoPage>
Example
int userId = 1;
var userPermissions = await _userManager.GetPermissions(userId);