Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

finding out who's invited a guest

Copper Contributor

Hi,

 

Is it possible to determine (e.g. from the invited user's properties) which user invited a user to the directory? I'd like B2B users with limited administrator / invite user privileges to be able to invite their colleagues, and for these colleagues to be dynamically allocated to a group based on who invited them.

 

I guess an alternative would be to group based on the domain of their email, but I'm keen to explore all options.

 

Thanks,

Ed

2 Replies

I'm trying to accomplish this as well. We have now over 1400 external guests in our AAD. Need a script to be able to send a status of invited users to an employee.

Or a statusreport that is send to the manager of an employee, who leaves the company.

@Ed Eastwood

 

 

Interesting use case. You could periodically query the unified log for invitation events and then write the requester to one of the B2B users attributes.

 

Once you have the requester in a format you can query, it would be a simple case of creating a dynamic group rule. Lots of custom code though....

 

Other option would be to use the B2B portal which has the ability to align groups to a domain. For example, I have a customer demo with SalesForce using the B2B portal. The B2B portal has a config for the gmail domain, which automatically assigns the user to a Salesforce group. That group is assigned to the Saleforce app and associated user/license provisioning. 

 

When the user logs into the Access Panel, they see the Salesforce icon, which gives them SSO without any administrator interaction.

 

Self-service portal for Azure AD B2B collaboration sign-up

https://docs.microsoft.com/en-us/azure/active-directory/b2b/self-service-portal

 

*** Be careful using Dynamic Groups for B2B users, you might find yourself in a licensing predicament. "This feature requires an Azure AD Premium P1 license for each unique user that is a member of one or more dynamic groups."

 

Hope this helps!