Hi @Roger Roger
We could use the method below to find the object id of the user
- Sign in to the Office 365 Admin Portal with an account in the desired tenant with the appropriate administrative rights.
- In the left-side menu, expand the Admin Centers section at the bottom and then select the Azure Active Directory option to launch the admin console in a new browser window.
- Select Users.
- Browse to or search for the desired user, then select the account name to view the user account's profile information.
- The Object ID is located in the Identity section on the right.
Or you could use the Get-AzureADUser command to meet this need as well. -ObjectId Specifies the ID (as a UPN or ObjectId) of a user in Azure AD.
Get-AzureADUser -objectID "******@contoso.com"
OR
Get-AzureADUser -Filter "userPrincipalName eq '******@contoso.com'"
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.