For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dynamic Groups

With dynamic groups, you can create rules based on user or device properties to automatically join them to a dynamic group. For example, an organization may add users to a particular group based on their userPrincipalName, department, mail etc. When a group membership rule is applied, all users and device attributes are evaluated for matches.

Guest invite abuse

  1. Before joining a tenant as guest, if we can enumerate that a property (lets say email) is used in a rule, we can invite a guest with the email ID that matches rule rule.

  2. After joining a tenant. Manage profile -> change alternative email that matches rule.

Example rule:

Python script to invite a guest

Change secondary e-mail

To match the dynamic group, update secondary email using connect-azaccount and fill in credentials including MFA

Next connect to Graph:

Update e-mail:

Check if you are now in the dynamic group

Last updated