question

cloudpartner-7917 avatar image
0 Votes"
cloudpartner-7917 asked ·

REST API to grant Permission to Azure Active Directory Application

We want to grant API Permissions to Application created in Azure Active Directory using REST API.
Did Azure had provision for the same.

azure-active-directory
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello Team,

We want to know the approach for azure login without browser interaction and without providing the credentials. for that, We got the Azure CLI command i.e az login --service-principal -u -p --tenant

We are successfully login But, When we execute the below command i.e.

az ad app permission list --id

We got the error : Insufficient Privileges to complete the operations.

It will be very helpful if you provides the API and SDK for the same if available.

Kindly help us as soon as possible.

4881-app-permission.png




0 Votes 0 · ·
app-permission.png (20.3 KiB)
michev avatar image
0 Votes"
michev answered ·

Depends on what exactly you mean. Take a look at the /application endpoints for the Graph API: https://docs.microsoft.com/en-us/graph/api/resources/application?view=graph-rest-1.0

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank You for quick response.

We want to grant the API permission (Windows Azure Service Management API) to Application created in Azure Active Directory. From the console its possible but we want to use Rest APIs for the same.

Please check the attached images for more details.


4162-azureaad-v1.png


0 Votes 0 · ·
azureaad-v1.png (89.4 KiB)
AnchalMadankar-0136 avatar image
0 Votes"
AnchalMadankar-0136 answered ·

Hello Team,

We want to know the approach for azure login without browser interaction and without providing the credentials.
for that, We got the Azure CLI command i.e
az login --service-principal -u -p --tenant

We are successfully login But, When we execute the below command i.e.

az ad app permission list --id

We got the error : Insufficient Privileges to complete the operations.

It will be very helpful if you provides the API and SDK for the same if available.

Kindly help us as soon as possible.



4871-app-permission.png




app-permission.png (20.3 KiB)
· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.