Class UserRoleAssignment
Represents the assignment of a tenant role to a user, optionally scoped to a branch.
public class UserRoleAssignment
- Inheritance
-
objectUserRoleAssignment
Properties
CreatedAt
public DateTime CreatedAt { get; }
Property Value
- DateTime
Id
public Guid Id { get; }
Property Value
- Guid
ScopeType
public byte ScopeType { get; }
Property Value
- byte
Tenant
public Tenant? Tenant { get; set; }
Property Value
TenantBranch
public TenantBranch? TenantBranch { get; set; }
Property Value
TenantBranchId
public Guid? TenantBranchId { get; }
Property Value
- Guid?
TenantId
public Guid TenantId { get; }
Property Value
- Guid
TenantRole
public TenantRole? TenantRole { get; set; }
Property Value
TenantRoleId
public Guid TenantRoleId { get; }
Property Value
- Guid
User
public User? User { get; set; }
Property Value
UserId
public Guid UserId { get; }
Property Value
- Guid
Methods
Create(Guid, Guid, Guid, Guid?)
public static UserRoleAssignment Create(Guid tenantId, Guid userId, Guid tenantRoleId, Guid? tenantBranchId = null)
Parameters
tenantIdGuiduserIdGuidtenantRoleIdGuidtenantBranchIdGuid?