This document describes the steps to create a custom eSHARE ABAC Connector application in the Microsoft Entra (Azure AD) portal. The following steps will be reviewed:
PREREQUISITES:
The person performing these steps must have an administrator role assignment of Application Administrator, Cloud Application Administrator, or Global Administrator in the destination M365 tenant.
Register the Application
To register the custom app registration for eSHARE ABAC Connector to read attributes of a user, log in to the Microsoft Entra console (https://entra.microsoft.com or https://entra.microsoft.us) and navigate to 'Applications' > 'App Registrations'.
On the 'App Registrations' page, click the '+ New registration' button in the top menu bar.
Input a recognizable unique name for the custom eSHARE app and select the 'Register' button at the bottom of the page.
In a few moments, a shell application is created and ready for further configuration.
Modify the Application Manifest (Commercial Cloud)
In the newly registered application page, navigate to the 'Manage' > 'Manifest' tab.
In the application's manifest, look for 'requiredResourceAccess'.

Replace the above string (including the comma at the end) from line 51 to 61 with the text below.
"requiredResourceAccess": [
{
"resourceAppId": "00000003-0000-0000-c000-000000000000",
"resourceAccess": [
{
"id": "3b37c5a4-1226-493d-bec3-5d6c6b866f3f",
"type": "Role"
},
{
"id": "b185aa14-d8d2-42c1-a685-0f5596613624",
"type": "Role"
},
{
"id": "5b567255-7703-4780-807c-7be8301ae99b",
"type": "Role"
},
{
"id": "df021288-bdef-4463-88db-98f22de89214",
"type": "Role"
}
]
}
],Click the 'Save' button in the top menu bar.
Modify the Application Manifest (Government Cloud)
In the same application manifest, look for 'requiredResourceAccess' (line 42 to 52) and replace it with the text below:
"requiredResourceAccess": [
{
"resourceAppId": "00000003-0000-0000-c000-000000000000",
"resourceAccess": [
{
"id": "eb3fd861-60df-440a-a09a-e71f7d968b6d",
"type": "Role"
},
{
"id": "f3566c47-d25d-4a6d-bf9d-3f109c1c693d",
"type": "Role"
},
{
"id": "5b567255-7703-4780-807c-7be8301ae99b",
"type": "Role"
},
{
"id": "df021288-bdef-4463-88db-98f22de89214",
"type": "Role"
}
]
}
],Click the 'Save' button in the top menu bar.
Grant Admin Consent
REQUIREMENT:
Granting admin consent for permissions within an app registration must be performed by a Global Administrator in the destination M365 tenant.
Important:
Please consult your eSHARE Customer Success Manager before removing any API Permissions.
For the saved application, navigate to the 'Manage' > 'API permissions' tab.
Select 'Grant admin consent for <tenant name>' at the top of the API permissions table.
Confirm when prompted.

Upload the Application Certificate
Option 1: Purchase a certificate from a well-known certificate authority and extract the private and public portions of the certificate. Upload the public portion in the Azure portal for the application and upload the private key in your eSHARE Admin Console (or provide the private key to your eSHARE admin).
Option 2: Create a self-signed certificate by following the instructions available at https://learn.microsoft.com/en-us/azure/active-directory/develop/howto-create-self-signed-certificate.
A short summary of the above instructions is below:
# Create a self-signed certificate in PowerShell
$mycert = "eShareApp"
$mycert = New-SelfSignedCertificate -DnsName "eShareApp" -Subject "CN=eShareApp" -CertStoreLocation "Cert:\CurrentUser\My" -NotAfter (Get-Date).AddYears(50) -KeyExportPolicy Exportable -KeySpec Signature -KeyLength 2048 -KeyAlgorithm RSA -HashAlgorithm SHA256# Extract .key file using OpenSSL
openssl pkcs12 -in eShareApp.pfx -nocerts -nodes -out eShareApp.key# Extract crt from pfx using OpenSSL
openssl pkcs12 -in eShareApp.pfx -clcerts -nokeys -out eShareApp.crt# Export certificate to .pfx file
$mycert | Export-PfxCertificate -FilePath eShareApp.pfx -Password $(ConvertTo-SecureString -String "myp@55W0rd" -AsPlainText -Force)When the appropriate certificate portions are available, navigate to 'Manage' > 'Certificates & secrets'.
On the 'Certificates' tab, click the 'Upload certificate' button.
Upload the CRT file from the above steps and click 'Add' at the bottom of the open pane.
Collect the Required Values
M365 Tenant ID: Navigate to the 'Identity' > 'Overview' tab of the Entra admin console, copy the 'Tenant ID' and save it.
Application ID: Navigate to the 'Overview' tab of the application, copy the 'Application (client) ID' and save it.
Certificate Thumbprint: For the certificate used during the application registration process, copy the certificate thumbprint and save it.
Public Certificate: The public certificate (.cer, .crt, .pem from above steps) that was uploaded in the Entra portal for the application registration.
Private Key: The private key (.key file from above steps) for the certificate uploaded in the Entra portal for the application registration.