Reassign a catalogue agent's owner
cs_reassign_org_agentTransfer ownership of an agent in the Microsoft 365 agent catalogue to another user by Entra object id when the owner leaves the organisation.
Instructions
Hand ownership of an agent in the Microsoft 365 agent catalogue to another user, by their Entra object id. Used when the owner leaves the organisation. The agent's owner inside a Power Platform environment is cs_reassign_agent_owner. Changes a live tenant: requires confirm: true. Needs CopilotPackages.ReadWrite.All and runs against Graph beta (cs_login scope 'graph_write'). Needs a Microsoft Agent 365 licence and is global-cloud only. Unverified against a live tenant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Package id from cs_list_org_agents, e.g. P_19ae1zz1-56bc-505a-3d42-156df75a4xxy | |
| userId | Yes | Entra object id of the new owner | |
| confirm | No | Required to actually perform a change in a live environment. Without it the tool returns a dry run. | |
| clientId | No | Entra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id. | |
| tenantId | No | Entra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID. | |
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. |