Office 365 Service Principal Client Secret Setup
Follow these steps to enable login using a service principal with client secret.
For more information see
https://learn.microsoft.com/entra/identity-platform/howto-create-service-principal-portal
- Ensure that the requirements are met.
- Logon to the Entra admin center as a user account with the sufficient permissions.
- Go to Applications > App Registrations.
- Click New Registration.
- Enter an appropriate name - for example "XIA Automation Server".
- For supported account types select
Accounts in this organizational directory only - Do not specify a Redirect URI.
- Click Register.
- Make a note of the following values
Application (client) ID
Directory (tenant) ID - Go to Certificates & secrets.
- Ensure the Client secrets tab is selected.
- Click New Client Secret.
- Enter a description and appropriate expiry.
- Copy the client secret value.
- Go to Applications > App Registrations > XIA Automation Server > API Permissions.
- Click Add a permission.
- Select Azure Service Management > user_impersonation.
- Click Add and ensure the permission is listed.
- Click the Grant admin consent button.
- Go to Roles & Admins.
- Assign the XIA Automation Server service principal the permissions required to execute the automation tasks.