CreateDelegationRequest Constructors
An object defining constructors for the CreateDelegationRequest class.
CreateDelegationRequest()
Initializes a new instance of the CreateDelegationRequest
class.
CreateDelegationRequest(name, type, to, startDate, endDate, scope, positionIds, creationType, basedType)
Initializes a new instance of the CreateDelegationRequest
class with specified details for delegation creation.
Parameters:
name (required): Dictionary<string, string>
Defines the multi language name of the delegation by culture.
type (required): DelegationType
TheDelegationType
enum defines the types of delegation available, specifying different modes of access or authorization. In this enumDelegation
means this delegation given to spesific user with specific permissions that decided by user. On the other handToken
act like access token with spesific that decided by user.
to (optional): long?
Defines the user id. It doesn't affect anything if (delegation type)[Bimser.Synergy.Entities.WebInterface.Common.Enums.DelegationType] selected asToken
.
startDate (required): DateTimeOffset
Defines the start date of the delegation.
endDate (optional): DateTimeOffset?
Defines the end date of the delegation. If it's set to null, delegation won't have a expire date.
scope (required): List<string>
Defines the list of permission to can be allowed with delegation.
positionIds (optional): List<long>
A list of position IDs associated with the delegation given user positions.
creationType (required): CreationType
Specifies the creation type for the delegation, indicating how it was generated or categorized.
basedType (required): BasedType
Specifies the basis type for the delegation, defining the origin or foundation of the delegation.