Skip to content

[Role] Fix #9250: az ad sp owner: Add support for add and remove#30741

Open
pedromaca wants to merge 5 commits intoAzure:devfrom
pedromaca:feature/spowner
Open

[Role] Fix #9250: az ad sp owner: Add support for add and remove#30741
pedromaca wants to merge 5 commits intoAzure:devfrom
pedromaca:feature/spowner

Conversation

@pedromaca
Copy link
Copy Markdown

Related command
az ad sp owner

Description
This PR introduces support for managing owners of Service Principals, which can be achieved by:

  • az ad sp owner add | Adds an owner to a target Service Principal
  • az ad sp owner remove | Removes an owner from a target Service Principal

Moreover, this PR addresses directly the needs of users as evidenced by the issue: possibility of adding service principal owners with the cli #9250

Testing Guide

  • az ad sp owner add --id 00000000-0000-0000-0000-000000000000 --owner-object-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  • az ad sp owner remove --id 00000000-0000-0000-0000-000000000000 --owner-object-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Jan 31, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot labels Jan 31, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added RBAC az role Graph (doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad labels Jan 31, 2025
@pedromaca
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@itpropro
Copy link
Copy Markdown

itpropro commented Jul 1, 2025

Any updates on this?

@kannanmotorq
Copy link
Copy Markdown

@pedromaca @yonzhan Any update here?

@jaredbrogan
Copy link
Copy Markdown

Can we please get this merged? This is much needed functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-identity-squad Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Graph (doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad RBAC az role

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants