Skip to main content
client.agentVault().delegations.get() gets which users a machine identity can create sessions on behalf of. If the machine identity has no delegation, get throws an InfisicalSDKRequestError whose statusCode is 404. The client must log in as a user or machine identity with the Admin role in the Agent Vault project. A machine identity without the role can still get its own delegation.

Parameters

string
required
The ID of the machine identity.
object
required

Returns

AgentVaultDelegationDetail
The delegation, including missingAccessBundles.
missingAccessBundles lists the access bundles that the delegation’s users can use and the machine identity can’t. A session on behalf of a user can use only an access bundle that both the user and the machine identity can use, so the machine identity can’t create sessions with those access bundles. If a machine identity without the Admin role gets its own delegation, missingAccessBundles is empty.