Skip to main content
client.agent_vault.delegations.add_subjects() adds users and groups to a machine identity’s delegation. The users and groups that are already in the delegation stay in it. Pass at least one ID. The client must log in as a user or machine identity with the Admin role in the Agent Vault project.
  • If the machine identity has no delegation, add_subjects creates one with the AgentVaultDelegationScope.SELECTED scope
  • If the delegation covers all members, you can’t add users or groups to it

Parameters

str
required
The ID of the Agent Vault project that the delegation is in.
str
required
The ID of the machine identity.
List[str]
The IDs of the users to add (up to 100).
List[str]
The IDs of the groups to add (up to 100).

Returns

AgentVaultDelegation
The delegation after the change, with missingAccessBundles.