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
- 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.
- 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.
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:
- Use PowerShell to bulk invite Azure AD B2B collaboration users
- Azure Active Directory version 2 cmdlets for group management
- How To Bulk Add Users to Azure AD Groups from CSV using PowerShell
- How to add members, in bulk, to a group with only userprincipalname?
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!