client.agent_vault.delegations.get() gets which users a machine identity can create sessions on behalf of. If the machine identity has no delegation, get raises an APIError whose status_code is 404. To catch the error, import the class with from infisical_sdk import APIError.
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
The ID of the Agent Vault project to get the delegation from.
Returns
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.