App-only authentication for unattended scripts for Exchange Online

Kamalpreet Singh 81 Reputation points

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:


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:


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

    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