Power2CM Azure App Registration
OVERVIEW
To use Power2CM you are required to register two applications on Azure Active Directory. One Azure app will be used to protect the Power2CM application installed on the web server, and the other will be used to allow the Power2CM Connector (inside power automate) to authenticate with the Power2CM application.
POWER2CM APP REGISTRATION
-
Sign in to the Azure web portal by clicking here
-
Once signed in, click on the Azure Active Directory button

-
Click on the App Registrations option from the left menu

-
Click on the New Registration button
-
Enter Power2CM into the name input field

-
Under Supported account types section enabled Accounts in this organizational directory only option

-
Select Single-page application (SPA) from the drop-down menu and type in the domain base URL configured for Power2CM followed by /Power2CM/
NoteThe URI is case sensitive, the route must match exactly the pattern below where the only variable that needs to be replaced is the hostname. Please include the trailing slash in the URL. Example: https://hostname/Power2CM/
-
Click on the Register button

API PERMISSIONS
The application will only require the User.Read Microsoft Graph permission. This permission is added by default when creating a new Azure App registration.
-
Click on API permissions from the left menu

-
Ensure the User.Read delegated permission is in the list of permissions

EXPOSE THE API
Applying a custom scope to the registration will prevent unauthorized access to the Power2CM API endpoints.
-
In the Left Menu, click on Expose an API

-
Next to the Application ID URI click on the Set option

-
Click on the Save button
NoteDo not Change the Application ID URI. It must be in the following format: api://{client id}

-
Click on the Add a scope button

-
Specify the values below in the Add a scope window, then click on Add scope
NoteThe scope must be named Grant.Access
Field Value Scope Name Grant.Access Who can consent? Admins and users Admin consent display name Grant Access to Power2CM Admin consent description Grant Access to Power2CM User consent display name Grant Access to Power2CM User consent description Grant Access to Power2CM State Enabled 
-
Once the scope has been added, click on API permissions

-
Click on the Add a permission option

-
Click My APIs
-
Click on the previously created Power2CM permission

-
Click on the Grant.Access scope and then click Add permissions at the bottom of the screen

-
Click on Grant admin consent

GATHERING APP DETAILS
Please follow the steps below to retrieve the Application ID, Tenant ID and Redirect URL on the Azure portal. These values are required for the installation.
-
Once signed into the Azure portal click on Azure Active Directory

-
Click on App registrations
-
Click on the required application (Power2CM created previously)
-
Click on Overview

-
Copy the Application (client) ID and Directory (tenant) ID and note them down

-
Click on Redirect URIs from the overview page
-
And then copy and note down the Redirect URI value

VALUES REQUIRED FOR INSTALLATION
The following values will be required for the installation of 365|2CM. Please ensure that the person responsible for the installation has these values.
- Redirect URI
- Application ID
- Tenant ID
| Name | Description |
|---|---|
| Redirect URI | The URI where Azure will send the authentication payload upon successful authentication. |
| Application ID | Application's unique identifier on AzureAD. |
| Tenant ID | The organization tenant's unique identifier on AzureAD. |
POWER2CM CONNECTOR APP REGISTRATION
-
Sign in to the Azure web portal using the link below https://azure.microsoft.com/en-gb/features/azure-portal/
-
Once signed in, click on the Azure Active Directory button

-
Click on the App Registrations option from the left menu

-
Click on the New Registration button
-
Enter Power2CM Connector into the name input field

-
Under Supported account types section enabled Accounts in this organizational directory option

-
Select Web from the drop-down menu and leave the URL value blank for now

-
Click on the Register button

API PERMISSIONS
-
Click on the API permissions option from the left menu

-
Click on Add a permission option

-
Click My APIs
-
Click on the previously created Power2CM Azure app registration. This is the registration you created first at the start of this guide

-
Click on the Grant.Access scope and then click Add permissions at the bottom of the screen

-
Click on the Grant admin consent option

-
Your configured permissions should appear as shown below:

CONFIGURE CLIENT SECRET
-
Click on Certificates and Secrets from the left-side menu

-
Click on the Client secrets tab and click New client secret
-
Provide a unique description and select an expiry period for your secret

-
Ensure to copy the Value to somewhere secure. Once you navigate away from this page you will be unable to access the secret value again

VALUES REQUIRED FOR POWER AUTOMATE SETUP
The following values will be required when configuring the Power2CM Connector in Power Automate:
- Application ID
- Client Secret
| Name | Description |
|---|---|
| Application ID | Application's unique identifier on AzureAD. |
| Client Secret | The client secret value. |
