Export business-to-business (B2B) users to Microsoft Entra ID
You can automatically export business-to-business (B2B) users to Microsoft Entra ID.
In the past, B2B users were exported manually to a .csv file. Then the Microsoft Entra tenant administrator had to use this file to manually add the users to Microsoft Entra using the Azure portal.
To enable the automatic export feature, a one-time setup and configuration process must be completed. When the process is completed, you can use the Provision Microsoft Entra B2B user workflow task to automatically export B2B users to Microsoft Entra ID.
The one-time set up and configuration means that you'll need to:
- Set up a B2B invitation service application in Microsoft Entra ID.
- Configure the B2B invitation service settings in finance and operations.
Set up a B2B invitation service application in Microsoft Entra ID
The tenant administrator of your Microsoft Entra tenant will need to complete the following steps.
Log on to the Azure portal as the tenant administrator.
Click Microsoft Entra ID > Properties.
Copy the Directory ID (this is the tenant ID) and save it. You will need this later.
Click App registrations > New application registration.
Enter the following information, and then click Create.
- In the Name field, enter the name of the application. For example: B2B admin application.
- In the Application type field, select Web app /API.
- In the Sign-on URL field, enter the URL for finance and operations.
Click the App registrations tab, click the newly created application, copy the Application ID, and save it. You will need this later.
Click All settings > Required permissions > Add.
In the Add API access pane, do the following:
Click the Select an API tab. Click Microsoft Graph, and then click Select.
In the Select permissions tab, select the following application permissions and set them to Yes:
- Invite guest users to the organization
- Read and write directory data
- Read and write all users' full profiles
Select the following delegated permissions and set them to Yes:
- Invite guest users to the organization
- Read and write directory data
- Read and write all users' full profiles
- Sign in and read user profile
Click Select and Done.
In the Required permissions blade, click Grant Permissions, and then click Yes to assign the permissions.
Click All settings > Keys, and then do the following:
- Enter a name of the key in the Description field.
- Set the expiration duration in the Expires field.
Click Save. Saving the key will display the Value.
Warning
Be sure to copy the key Value after saving the key. This value will not be available when you leave the blade.
Configure the B2B invitation service settings
Sign in to finance and operations as administrator.
Navigate to the B2B Invitation Configuration page, and click Edit.
Select Enabled.
Verify that the Tenant ID is the same as the Directory ID (which you noted in step 3 of the previous procedure).
In the Client ID field, enter the Application ID (which you noted in step 6 of the previous procedure).
Enter the key Value, copied from the above procedure, into the Application Key field.
Save the settings.
Now you can start using the Provision Microsoft Entra B2B user workflow task in your workflows to automatically export B2B users to Microsoft Entra ID.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for