Skip to content

Add

Adds a new delegation from one identity to another and returns the ID of the delegation.

1
$Delegation.Add(from: ( string | Identity ), to: ( string | Identity ), start: DateTimeOffset, end: DateTimeOffset):string

Parameters

( string | Identity ) from
    The delegating identity (ID or Identity object).

( string | Identity ) to
    The delegated identity (ID or Identity object).

DateTimeOffset start
    The start date and time of the delegation.

DateTimeOffset end
    The end date and time of the delegation.

Returns

The ID of the created delegation entry.