Class WMUser
Class representing users as WMPrincipal instances to which access privileges can be granted, and
ownership of objects assigned.
Assembly: WMServer.dll
Syntax
[HasDTO(typeof(WMUserDTO))]
public class WMUser : WMPrincipal, IPolicyAssignable, IWMAssetOwner, IDbEntity, IWMEntity
Constructors
WMUser()
Default constructor that sets the ID to a new GUID.
Declaration
WMUser(string)
Constructor that initializes the ID.
Declaration
Parameters
Type |
Name |
Description |
string |
id |
|
Properties
Email
Declaration
public string Email { get; set; }
Property Value
IsSysAdmin
Whether this user is a system admin for this instance of WMServer
Declaration
public int IsSysAdmin { get; set; }
Property Value
LoginName
Declaration
public string LoginName { get; set; }
Property Value
Password
Password used for authentication
Declaration
public string Password { get; set; }
Property Value
Salt
Salt for hashing the password.
Declaration
public string Salt { get; set; }
Property Value
Methods
Get(string, AuthDbContext?)
Declaration
public static Task<WMUser> Get(string id, AuthDbContext? context = null)
Parameters
Returns
GetOrganizations(WMPrincipal, string, AuthDbContext)
Declaration
public static Task<IEnumerable<WMOrganization>> GetOrganizations(WMPrincipal principal, string userID, AuthDbContext context)
Parameters
Returns
GetUsers(WMPrincipal, AuthDbContext?)
Evaluate a list of all users that the caller is authorized to view. If caller does not have privileges to view users,
status code 403 (Forbidden) will be returned.
Declaration
public static Task<List<WMUser>> GetUsers(WMPrincipal principal, AuthDbContext? context = null)
Parameters
Returns
Implements