Class ListIdentityUser
Represents a combination of an user and person in the identity system, ued when listing or searching for users.
Inherited Members
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.EntityFrameworkCore.dll
Syntax
public class ListIdentityUser : IListUser, IPerson, IPersonName, IEventAggregate, IUserIdentifiers, IUniqueIdentifier, IHaveEmail
Properties
Gets or sets the entity's email.
Declaration
public string Email { get; set; }
Property Value
String
|
Implements
FirstName
Gets or sets the persons first name.
Declaration
public string FirstName { get; set; }
Property Value
String
|
Implements
Id
Gets the identity of the object implementing this interface.
Declaration
public Guid Id { get; set; }
Property Value
System.Guid
|
Implements
IsLockedOut
Gets or sets a flag indicating if the user is locked out or not.
Declaration
public bool IsLockedOut { get; set; }
Property Value
Boolean
True if the user is locked out, otherwise false. |
Implements
IsSystemUser
Gets or sets if the user is a system or not.
Declaration
public bool IsSystemUser { get; set; }
Property Value
Boolean
true if the user is a system; false if the user is human. |
Implements
IsValid
Gets if the user is valid to sign-in.
Declaration
public bool IsValid { get; set; }
Property Value
Boolean
True if the user is valid to sign-in; otherwise false. |
Implements
LastName
Gets or sets the persons last name.
Declaration
public string LastName { get; set; }
Property Value
String
|
Implements
Name
OrganisationId
Gets or sets the identity of the organisation that the user belongs to. Can be the same as the tenant id, but it could also be a child organisation.
Declaration
public Guid? OrganisationId { get; set; }
Property Value
System.Nullable<System.Guid>
|
Implements
OrganisationName
Gets or sets the name of the organisation (if the person belongs to one)
Declaration
public string OrganisationName { get; set; }
Property Value
String
|
Implements
UserName
Gets or sets the user name for this user.
Declaration
public string UserName { get; set; }
Property Value
String
|
Implements
Methods
GetClaims(String, String)
Gets a collection of claims for this person.
Declaration
public IEnumerable<Claim> GetClaims(string nameClaimType = "name", string unknownName = "Okänt")
Parameters
String
nameClaimType
The type of claim to use for the person name. |
String
unknownName
The value for unkonw name, ie used when a fake person is created. |
Returns
IEnumerable<System.Security.Claims.Claim>
A collection of claims. |