question

DaveAmour-7182 avatar image
0 Votes"
DaveAmour-7182 asked Danstan-MSFT edited

How Do I Add API Permission to App when registering through the Graph API

I have C# code running which is registering an app ok as below

         var application = new Application
         {
             DisplayName = appName
         };

         await _client.Applications
             .Request()
             .AddAsync(application);

I would like to also add an API permission to the new app either in this post or in a subsequent edit

Any ideas please?

azure-active-directorymicrosoft-graph-sdkmicrosoft-graph-identity
· 3
5 |1600 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.

Adding right tags/teams to assist

1 Vote 1 ·

I have solved this now. What is the correct protocol to close this in a way which will help others?

0 Votes 0 ·

Just post an answer to this with enough details that would help anyone. Don't share any sensitive data. Then accept the answer.

0 Votes 0 ·

0 Answers