Interface IUserService
Service on Kit.User
to get users and roles of the platform.
[PublicApi]
public interface IUserService
Remarks
History: Released in 19.02 after being internal since 15.03.
Methods
GetRoles()
Get all user roles.
IEnumerable<IUserRoleModel> GetRoles()
Returns
GetUser(int)
Get a user by id.
IUserModel GetUser(int id)
Parameters
id
intthe user id
Returns
- IUserModel
If found, a user model containing the user specs. If not found, a user model containing the unknown user specs.
GetUser(string)
Get a user by nameId.
IUserModel GetUser(string nameId)
Parameters
nameId
stringThe nameID which is the identity token like
dnn:42
.
Returns
- IUserModel
If found, a user model containing the user specs. If not found, a user model containing the unknown user specs.
GetUsers()
Get all users.
IEnumerable<IUserModel> GetUsers()