Skip to main content
client.agentVault().delegations.set() sets which users a machine identity can create sessions on behalf of. The new delegation replaces any delegation that the machine identity has. The client must log in as a user or machine identity with the Admin role in the Agent Vault project. With AgentVaultDelegationScope.Selected, pass at least one user or group. With AgentVaultDelegationScope.AllMembers, pass no users or groups. To stop the machine identity from acting on behalf of anyone, delete the delegation. Each user and group must be a member of the Agent Vault project. If a user is in the Agent Vault project only through a group, pass the group instead.

Parameters

string
required
The ID of the machine identity, which must be a member of the Agent Vault project.
object
required

Returns

AgentVaultDelegationDetail
The delegation, with missingAccessBundles.