Table of Contents

Class UserRoleAssignment

Namespace
KadicAuth.Domain.Entities
Assembly
KadicAuth.Domain.dll

Represents the assignment of a tenant role to a user, optionally scoped to a branch.

public class UserRoleAssignment
Inheritance
object
UserRoleAssignment

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

Tenant

TenantBranch

public TenantBranch? TenantBranch { get; set; }

Property Value

TenantBranch

TenantBranchId

public Guid? TenantBranchId { get; }

Property Value

Guid?

TenantId

public Guid TenantId { get; }

Property Value

Guid

TenantRole

public TenantRole? TenantRole { get; set; }

Property Value

TenantRole

TenantRoleId

public Guid TenantRoleId { get; }

Property Value

Guid

User

public User? User { get; set; }

Property Value

User

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

tenantId Guid
userId Guid
tenantRoleId Guid
tenantBranchId Guid?

Returns

UserRoleAssignment