client.agent_vault.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.ALL_MEMBERS, 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
The ID of the Agent Vault project to set the delegation in.
Either
AgentVaultDelegationScope.SELECTED ("selected") for only the users and groups that you pass, or AgentVaultDelegationScope.ALL_MEMBERS ("all-members") for every member of the Agent Vault project, admins included.With
AgentVaultDelegationScope.SELECTED, the IDs of the users that the machine identity can act on behalf of (up to 100).With
AgentVaultDelegationScope.SELECTED, the IDs of the groups whose members the machine identity can act on behalf of (up to 100).