Microsoft Entra – registering new application and assigning permissions to access Microsoft Graph APIs

Microsoft Entra admin center - Register an application page - creating new application
Microsoft Entra admin center - Register an application page - creating new application

Hi All,

Greetings for the day!

In this article we will discuss how to register new application and granting permissions to application to access the Graph API

Background / Use Case

  • In one of the scenario I was using Microsoft Graph PowerShell and connecting Microsoft Graph using Connect-MgGraph PowerShell CMDLET
  • I want to connect Microsoft Graph using application id (App ID / Client ID) and certificate
  • So to use App ID, we need to register the new application and here is the article

Steps to create / register new application from UI – from Microsoft Entra admin center

Microsoft Entra admin center
fig : Microsoft Entra admin center
Microsoft Entra admin center - App registration page
fig : Microsoft Entra admin center – App registration page
Microsoft Entra admin center - Register an application page - creating new application
fig : Microsoft Entra admin center – Register an application page – creating new application
  • Please enter the respective details –
    • Application Name
    • Supported account types – currently we will select single tenant option – for my tenant only
  • Click on “Register” button
  • Application creation process will start
  • Once application created successfully – we will have message popup at right top corner as in below snap
Microsoft Entra admin center - App registration - creating / registering new app
fig : Microsoft Entra admin center – App registration – creating / registering new app
  • Here please note the Application (client) ID – we need to use it

Once application created successfully, next step is granting permission to our application to access Graph APIs

Steps to Grant Permissions to Application to access Microsoft Graph APIs

  • From the Application overview page, from left blade (menu) click on option “API permissions” as
Microsoft Entra admin center - App registration - Application overview page - API permissions option from left menu
fig : Microsoft Entra admin center – App registration – Application overview page – API permissions option from left menu
  • As we click on “API permissions” link from left menu , we will be redirected to “API Permissions” page as in below snap
Microsoft Entra admin center - App registration - API permissions page
fig : Microsoft Entra admin center – App registration – API permissions page
  • On “API permissions” page we have current list of permissions and details.
  • We have also an option to give new permissions – “+ Add a permission” link and also an option to “Grant admin consent for tenant
  • To give permission to our application , please click on “+ Add a permission“, we will be redirected to “Request API permissions” page as in below snap
Microsoft Entra admin center - App registration - Request API permissions page
fig : Microsoft Entra admin center – App registration – Request API permissions page
  • From “Request API permissions” page we select “Microsoft Graph” as shown in above snap
  • As we select “Microsoft Graph“, next we need to select – type of permissions either “Delegated permissions” or “Application permissions” as in below snap
  • Since we are discussing permissions for our app we will select “Application permissions” as in below snap
Microsoft Entra admin center - App registration - Request API permissions - permission types
fig : Microsoft Entra admin center – App registration – Request API permissions – permission types
  • As we click on “Application permissions” we will have list of all permissions to select as shown in below fig
Microsoft Entra admin center - App registration - selecting permissions from permissions list
fig : Microsoft Entra admin center – App registration – selecting permissions from permissions list
  • From the permissions list, currently we are selecting – “Sites.FullControl.All” as in above snap
  • After selecting respective permissions please click on “Add permissions” button at the bottom
  • Once permissions are set, we will get a pop up at right top corner – “Updating permissions” as in below snap
Microsoft Entra admin center - App registration - permissions are set to app
fig : Microsoft Entra admin center – App registration – permissions are set to app successfully
  • Now, on behalf of app, we could access all the sites using GRAPH APIs or Graph PowerShell

Next step is to create certificate and upload to the app – we will cover in next article

REFERENCES

Thanks for reading !

Stay tuned for more articles on Microsoft Graph PowerShell!

HAPPY LEARNING AHEAD 🙂 LIFE IS BEAUTIFUL 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

7 Responses

  1. January 21, 2024

    […] To register an Application in Azure AD – we have detailed article for registering an application from Microsoft Entra admin center – Microsoft Entra – registering new application and assigning permissions to access Microsoft Graph APIs – https://microsoft365hub.in/2024/01/18/microsoft-entra-registering-new-application-and-assigning-per… […]

  2. January 29, 2024

    […] Navigate to our registered application in the Microsoft Entra ID portal and grant the necessary permissions. If you are unsure how to do this, refer to below guide for step-by-step instructions – https://microsoft365hub.in/2024/01/18/microsoft-entra-registering-new-application-and-assigning-perm… […]

  3. January 31, 2024

    […] Navigate to our registered application in the Microsoft Entra ID portal and grant the necessary permissions. If you are unsure how to do this, refer to below guide for step-by-step instructions – https://microsoft365hub.in/2024/01/18/microsoft-entra-registering-new-application-and-assigning-perm… […]

  4. February 1, 2024

    […] Navigate to our registered application in the Microsoft Entra ID portal and grant the necessary permissions. If you are unsure how to do this, refer to below guide for step-by-step instructions – https://microsoft365hub.in/2024/01/18/microsoft-entra-registering-new-application-and-assigning-perm… […]

  5. February 3, 2024

    […] By following these steps, we grant the necessary permissions to our application, allowing it to interact seamlessly with Microsoft 365 services. If you encounter any issues, refer to our comprehensive guide on granting permissions for detailed assistance – https://microsoft365hub.in/2024/01/18/microsoft-entra-registering-new-application-and-assigning-perm… […]

  6. February 6, 2024

    […] Navigate to our registered application in the Microsoft Entra ID portal and grant the necessary permissions. If you are unsure how to do this, refer to below guide for step-by-step instructions – https://knowledge-junction.in/2024/01/18/microsoft-entra-registering-new-application-and-assigning-p… […]

  7. May 6, 2024

    […] We could create / register the app from Microsoft Entra admin center. We have detailed article for the same. Microsoft Entra – registering new application and assigning permissions to access Microsoft Graph APIs – https://knowledge-junction.in/2024/01/18/microsoft-entra-registering-new-application-and-assigning-p… […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading