Azure / Azure/azure-cli

[Feature Request] Support Microsoft Graph servicePrincipals Add/Remove owner API

Open
#20,991 2 comments 2 reactions 1 assignee Claimed by @jiasli View on GitHub
feature-request Microsoft Graph
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Context

MS Graph API `servicePrincipals` has

- [Add owner](https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-owners?view=graph-rest-1.0&tabs=http)
- [Remove owner](https://docs.microsoft.com/en-us/graph/api/serviceprincipal-delete-owners?view=graph-rest-1.0&tabs=http)

but there is no corresponding Azure CLI command.

```
> az ad sp owner -h

Group
az ad sp owner : Manage service principal owners.

Commands:
list : List service principal owners.
```

## Solution

Introduce corresponding commands:

- `az ad sp owner add`
- `az ad sp owner remove`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.