Bulk Inviting Guest Users and Auto Assign them to Group

Matthias Wille 45 Reputation points
2023-02-14T15:39:17.9666667+00:00

I need to regularly bulk invite guest users and and them to a specific group. The bulk invite .csv template doesn't seem to provide this functionality.

How can I achieve this?

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,906 Reputation points Microsoft Employee Moderator
    2023-02-17T15:40:43.5466667+00:00

    @Matthias Wille

    Thank you for your post and I apologize for the delayed response!

    I understand that you're trying to bulk invite Guest users and have them auto assigned to an Azure AD group. However, the current bulk invite users CSV template doesn't provide the functionality you're looking for. I don't believe there's a direct feature to bulk invite Guest users and auto assign these users to Azure AD groups, but to hopefully point you in the right direction, I'll share some of my findings below.

    Download a list of users in Azure Active Directory portal:

    Once you've bulk invited your Guest Users via the Bulk Invite CSV

    1. From the Azure Portal, you can download the list of created users that you bulk invited by filtering by 'Created Date Time' for when you bulk invited the users.
    2. Once you've downloaded the list of invited users, you can copy the UPNs, or Object IDs into the Bulk add group members CSV template to add the invited users to an Azure AD group.

    Note: You can also use the UPNs/ Object IDs to bulk add users to Azure AD Groups using PS.User's image

    Create dynamic groups in Azure Active Directory B2B collaboration:

    Another option you have is to create a Dynamic Azure AD Group and set rules to populate the group(s) based on user attributes. For more info - Creating a group of guests only.

    Additional Links:

    I've also reached out to my team to see if they can take a look into your issue as well.


    I hope this helps!

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Likun Chen 5 Reputation points
    2023-10-19T13:59:53.5766667+00:00

    The direction provided by JamesTran-MSFT is accurate. However, exercise caution if you intend to use it directly. The filtered user list (based on creation time) won't include any existing guest users that might be part of the bulk invite list. Additionally, the bulk invite results file will only highlight existing internal users, not guest users.

    I recommend writing some PowerShell scripts to filter out existing guests before proceeding with the bulk inviting process, and add them along with others in the group-adding . Alternatively, be vigilant about the final number of users added to the group.

    I'm puzzled as to why Microsoft's Azure AD/Identity/Entitlement (or whatever they're calling it this week) complicates such routine tasks.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.