# 动态组成员资格

```
获取允许动态成员资格的组：Get-AzureADMSGroup | ?{$_.GroupTypes -eq 'DynamicMembership'}

规则示例：(user.otherMails -any (_ -contains "vendor")) -and (user.userType -eq "guest")
规则描述：任何其辅助电子邮件包含字符串“供应商”的访客用户都将被添加到组中

打开用户的个人资料，点击管理
单击重新发送邀请并获取邀请 URL
设置辅助邮箱
PS> Set-AzureADUser -ObjectId <OBJECT-ID> -OtherMails <Username>@<TENANT NAME>.onmicrosoft.com -Verbose
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.heresecurity.wiki/yun-an-quan/azure/dong-tai-zu-cheng-yuan-zi-ge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
