App-only authentication for unattended scripts for Exchange Online

Kamalpreet Singh 81 Reputation points
2021-01-21T18:41:52.853+00:00

We want to run a Powershell script unattended for Exchange Online so I'm setting up an registered application on Azure portal based on document App Only Authentication.

I followed all 4 steps successfully however on step 5, I'm unable to select registered app from Roles and Admin Assignments. It does not show my newly created application to select as an assignment to Roles and administrators > Exchange administrator > Add Assignment.

My registered application is:

105108327-3a42da80-5a77-11eb-81b3-a1460dc39360.png

As per Step 5, when I try to search this application within Roles and administrators > Exchange administrator > Add Assignment I do not see it there:

105108548-bb9a6d00-5a77-11eb-8651-eea9bda86dfd.png

Do we need to follow any additional steps which are not listed in this document?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,263 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 97,306 Reputation points MVP
    2021-01-21T19:01:25.7+00:00

    The Azure AD folks seems to have pushed an update that removes service principal objects from this page, use PowerShell instead:

    Add-AzureADDirectoryRoleMember -ObjectId xxxxx -RefObjectId xxxxx
    
    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful