question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure AD permissions needed

See original GitHub issue

Hi There, I am running a pipeline under a service principal and I try to add new owners to the Azure AD applications that I create through this SP. The latter as the following permissions granted: image However I am not able to add new owners when I create a new application here is the steps that I follow:

#login using the service principal
$ az login --service-principal --user $app_id --password $app_secret --tenant $tenant_id

#creating new application
$ export created_app_id=$(az ad app create --display-name "sp-created-app2" --query appid -o tsv)

#Add new owner to my subscription
$ az ad app owner add --id $created_app_id --owner-object-id $my_azuread_user
Insufficient privileges to complete the operation.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
nishanpereracommented, Jul 9, 2020

Hi, @markthebault I am in the process of adding the permission. Found this article https://docs.microsoft.com/en-us/graph/api/application-post-owners?view=graph-rest-1.0&tabs=http seems like it is necessary @jiasli

1reaction
markthebaultcommented, Jul 9, 2020

Hi Guys I managed to solve the issue, this is the permission that was missing: Screenshot 2020-07-09 at 09 55 34

You do only need the following permissions to do the use-case presented: Azure active directory graphs:

  • Application.readWrite.OwnedBy – Application
  • Directory.Read.All – Application
Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure AD built-in roles - Active Directory - Microsoft Learn
Role Description Template ID Attribute Definition Reader Read the definition of custom security attributes. 1d336d2c... Azure DevOps Administrator Can manage Azure DevOps policies and settings....
Read more >
Least privileged roles by task - Azure Active Directory
In this article, you can find the information needed to restrict a user's administrator permissions by assigning least privileged roles in Azure ...
Read more >
Overview of permissions and consent in the Microsoft identity ...
Delegated access requires delegated permissions. Both the client and ... For example, an application can be assigned an Azure AD RBAC role.
Read more >
Understand roles in Azure Active Directory - Microsoft Learn
Azure AD-specific roles: These roles grant permissions to manage resources within Azure AD only. For example, User Administrator, Application ...
Read more >
Default user permissions - Azure Active Directory
In Azure Active Directory (Azure AD), all users are granted a set of default permissions. A user's access consists of the type of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found