Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reassign app ownership so your team can continue to maintain an app when its creator leaves, changes roles, or hands responsibility to IT. Use the Copilot Managed Runtime CLI (ms command) to add the new owner, verify their access, and then remove the former owner if they no longer need owner access.
This article describes the administrator workflow. Find the app in the Microsoft 365 admin center first and then, use the CLI to update its owners.
Important
These commands are currently available only for apps that use a platform-managed Git repository.
What changes when you update app owners
Adding an app owner grants owner access without replacing or demoting existing owners. The platform manages this access through owner assignments on the app's platform-managed Git repository.
Removing an owner removes that owner assignment; it doesn't automatically assign a lesser role. The person might retain access through other roles assigned separately. Additionally, changing app ownership doesn't transfer ownership of the app's connections or change their credentials. As part of a handoff, review the new owner's data-source permissions and any connections that depend on the departing owner's account.
Prerequisites
Before you begin, make sure you have:
- The Copilot Managed Runtime CLI installed.
- An account with the Power Platform Administrator or Global Administrator role in the tenant that contains the app.
- The app's App ID, which is a GUID.
- The email address or Microsoft Entra object ID of each owner you want to add or remove.
Find the app ID
- Sign in to the Microsoft 365 admin center.
- Go to Apps > All apps, and select the Copilot Managed Runtime tab.
- Search for the app. You can filter by Owner to find apps associated with a departing employee.
- Select the app to open its details pane, then copy the App ID.
For more information about the inventory, see View and oversee apps across your tenant.
Sign in to the CLI
Open a terminal and use ms auth login to sign in with the account authorized to manage app ownership:
ms auth login
Make sure you're signed in to the tenant that contains the app.
Add an owner
Use ms admin add owner to add an app owner. Replace <app-id> with the GUID you copied and newowner@contoso.com with the new owner's email address:
ms admin add owner newowner@contoso.com --app <app-id>
The command prompts for confirmation. Review the app ID, environment ID, and owner before you continue. Adding an owner preserves existing owners and other role assignments.
To add more than one owner, separate their email addresses or object IDs with spaces:
ms admin add owner newowner@contoso.com backupowner@contoso.com --app <app-id>
You can use a Microsoft Entra object ID instead of an email address. For a service principal, use its object ID.
Verify the new owner's access
Since the Owner field doesn't update with due to known issue, ask the new owner to sign in with their own account and verify that they can perform the app maintenance tasks they need, including accessing the app's source code. For guidance on accessing source code, see Collaborate on a Copilot Managed Runtime app.
Also verify that the new owner has the data-source permissions and connections needed to maintain the app. Connections remain tied to their existing credentials. If the app depends on the former owner's personal connections, the new owner might need to create their own connections.
Remove an owner
Use ms admin remove owner to remove an existing app owner. Replace <app-id> with the app's GUID and formerowner@contoso.com with the email address of the owner to remove. If you're reassigning ownership, verify the replacement owner's access first.
ms admin remove owner formerowner@contoso.com --app <app-id>
The command prompts for confirmation unless you pass --force. Check the person and app before you confirm.
Read the result to confirm that an owner assignment was removed. If no matching owner assignment is found, retry using the person's Microsoft Entra object ID.
The platform prevents you from removing the app's last owner so the app always has at least one owner.
Resolve ownership changes that fail
| Issue | What to check |
|---|---|
| You don't have sufficient permission. | Confirm the signed-in account, tenant, and admin permissions. |
| The CLI can't find the app. | Verify that --app contains the correct GUID and that the signed-in account can access the app in its tenant. |
| The repository association isn't supported. | Confirm that the app has a platform-managed repository. For external GitHub repositories, manage access in GitHub. |
| The inventory still shows the app's creator. | This is a known issue. The Owner field doesn't currently reflect ownership changes made through the CLI. Verify the person's access to confirm the change. |
Known issues
- Updating app owners through the CLI doesn't currently update the Owner field on the All apps page. This field continues to show the app's creator rather than its current owner. Verify new owner's access after you update an app owner manually instead of using the Owner field.