Configure Microsoft Entra ID
You can configure an Microsoft Entra ID directory to manage your users and groups through IDaaS. You can also manage your Microsoft Entra ID password (change or reset) through IDaaS and can use them to log in to IDaaS.
Changing Microsoft Entra ID authorization permissions
IDaaS uses Read/Write as the default permission to allow all operations. Once the directory is created with the Read/Write permission, the Enterprise application will have all the scopes associated to Read/Write.
To change it back to Read-Only, the associated Read/Write scopes must be revoked from the Enterprise application. This can be done in two ways:
- Manually revoke all read/write the scopes associated with the enterprise application.
- Delete the Enterprise application and reauthorize.
Permission details
- IDaaS Read Permission is associated with
openid,offline_access,User.Read.All,Group.Read.All,Directory.Read.AllMicrosoft Graph API permissions (claim values). - IDaaS Read/Write Permission is associated with
openid,offline_access,User.ReadWrite.All,Group.Read.All,Directory.ReadWrite.All, andDirectory.AccessAsUser.AllMicrosoft Graph API permissions (claim values).
The Administrator who has the privilege to grant the permission can be used to consent for the requested scopes, for example, the Global Administrator.
Supported Microsoft Entra ID user roles and operations
The following table outlines the tested roles and supported actions.
Roles 2, 3, and 4 do not have the privilege to grant consent. A requisite Global Administrator must grant consent.
| SI No. | Role | Permission | User Sync | Group Sync | Password Reset |
|---|---|---|---|---|---|
| 1 | Global Administrator | Read-Only | Yes | Yes | No |
| Read/Write | Yes | Yes | Yes | ||
| 2 | Reauthorize with User Administrator | Read-Only | Yes | Yes | No |
| Read/Write | Yes | Yes | Yes | ||
| 3 | Reauthorize with Global Reader | Read-Only | Yes | Yes | No |
| Read/Write | Yes | Yes | No | ||
| 4 | Reauthorize with Directory Reader | Read-Only | Yes | Yes | No |
| Read/Write | Yes | Yes | No |
Migrating an Microsoft Entra ID LDAP to Microsoft Entra ID C2C
To migrate an Microsoft Entra ID LDAP to Microsoft Entra ID C2C, you must do the following:
-
Note any groups filters that you configure for Microsoft Entra ID LDAP.
-
Delete the existing on-premises directory configuration on IDaaS. Note that there will be an outage period until you complete steps 3 and 4.
-
Follow the steps to Add a Microsoft Entra ID. Make sure that you add the group filters noted in step 1.
noteWhen creating the Microsoft Entra ID Cloud to Cloud configuration, if you set the following additional Custom Attribute mapping, CustomAttribute=onPremisesImmutableId, you can get the ImmutableID from Microsoft Entra ID, which can be used in any Office 365 configurations and subsequent authentications.
Migrating an On-Premises (Windows server-based) active directory to Microsoft Entra ID C2C
To migrate an Microsoft Entra ID LDAP to Microsoft Entra ID C2C, you must do the following:
- Note any groups filters that you configure for the on-premises Active Directory.
- Create a new dummy custom attribute. See Create and manage user attributes.
- Change the directory configuration and map this newly created custom attribute to a valid directory attribute.
- The directory configuration change triggers a directory sync. Wait for the sync to complete successfully. successfully.
- Follow the steps to Add a Microsoft Entra ID. Make sure that you add the group filters noted in step 1.
- Force sync the directory.
Steps 2 and 4 are only necessary if you configured the on-premises directory.
Add a Microsoft Entra ID directory
-
Click Directories. The Directories List page appears.
-
Click and select Microsoft Entra ID from the drop-down list. The Azure Authorization dialog box appears.
-
Select the Authorization permission for Microsoft Entra ID sync with IDaaS. If you select, Read Only, password change and password reset will not be available.
-
Click Authorize. You are redirected to Microsoft to sign in to your account.
-
Sign in to your Microsoft Entra ID account. You are redirected to the Microsoft Permissions page. The Permissions page lists all the permissions needed for IDaaS to import users and groups from your Microsoft Entra ID.
-
Click Consent on behalf of your organization. You must select this checkbox to use an Microsoft Entra ID directory with IDaaS.
-
Click Accept. You are redirected to the Add Directory page.
noteWhen you log in to Microsoft Entra ID, a token is generated. The token remains valid for 10 minutes. If you do not complete log in and permission acceptance within 10 minutes, the token expires. If this happens, IDaaS creates the directory but it is in an unauthorized state. On the Directories List page, click the directory name. The Edit Azure Directory page appears. Click Re-Authorize.
-
Enter a Directory Name to identify your Microsoft Entra ID.
-
In the Group Filters field enter the name of the group that you want to filter. For example, enter Sales to sync all users in the Sales Department. By default all groups are synchronized.
noteIf there are no group filters set, all users are imported. If there is more than one group filter set, the user must belong to one of the groups identified by the group filters. Only enter one value per Group Filter text box.
-
Optional: Click Add to add more group filters.
-
In the Attributes Mappings section, map the user attributes to the Microsoft Entra ID attributes.
noteIf a user does not have an email and phone or mobile attribute in Microsoft Entra ID or they are not properly mapped, they will not have the OTP capability. You must at a minimum map the mandatory system attributes. They are flagged with an asterisk (*).
-
Optional. Add Custom User Attributes. (See Create and manage user attributes).
noteYou must map attributes to the Microsoft Entra ID attributes. For a complete list, on the Add Directory page, click next to either System User Attributes or Custom User Attributes and then click the Azure user attributes link. For example, if you want to add a custom user attribute for a user's a Hire Date, you can create it in IDaaS and call it Hire Date (or anything you want) but you must map it to hireDate, which is the acceptable Azure attribute.
-
In the Synchronization section, do the following:
-
From the Group Synchronization drop-down list, select the groups that you want to add to IDaaS. Only groups with users synced to IDaaS are created. The group synchronization options include:
- All groups: All groups from users synced to IDaaS are added.
- Groups Matching Group Filter: Only groups matching the filter are added to IDaaS.
- No Groups: No groups are added to IDaaS.
-
Select the User Desynchronization Policy from the drop-down list. This policy determines what happens to user accounts in IDaaS that are no longer found in the directory or no longer match the filters. Options include:
- Group removed from Identity as a Service to remove the group from IDaaS.
- Group becomes a directory-localized IDaaS group to keep the group but change it to an unsynchronized group.
noteMicrosoft Entra ID synchronization occurs automatically every 8 hours.
-
-
Click Add.
When synchronization completes, the new directory appears on the Directories List page. A check mark appears in the Connection Status column to indicate that IDaaS has successfully connected to Azure AD.
Troubleshoot
Unauthorized icon appears
If an unauthorized icon appears, you cannot access the Microsoft Entra ID account or revoke permissions for IDaaS. This might happen if you remove an application from Microsoft Entra ID. If this occurs, do the following:
- In the IDaaS Directories List page, select the Microsoft Entra ID directory name. The Edit Directory page appears, click Re-authorize.
- Sign in to your Microsoft Entra ID account. You are redirected to the Microsoft Permissions page. The Permissions page lists all the permissions needed for IDaaS to import users and groups from your Microsoft Entra ID.
- Click Consent on behalf of your organization. You must select this check box to use a Microsoft Entra ID directory with IDaaS.
- Click Accept. You are redirected to the Edit Directory page.
- Click Save.
Password authentication failure with conditional access enabled
When syncing users through Microsoft Entra ID with Conditional Access enabled or users with Office365 federated domains, IDaaS is unable to perform password authentication. Only second-factor authentication for users protected by conditional access is available. This only affects Microsoft Entra ID Cloud to Cloud sync. This is not an issue if you are syncing users from Microsoft Entra ID through the Enterprise Service Gateway.