Microsoft 365 Devices Rule Command Description
This membership rule command updates Microsoft 365 Dynamiс Group membership with the Microsoft 365 Devices that meet certain query criteria and filter settings.
NOTE: Only Microsoft 365 security groups are supported for devices.
Membership Rule Command Settings
Setting name |
Description |
|---|---|
| Limit scope to this Azure AD Administrative Unit | You can select Azure AD Administrative Unit to limit the command scope. |
| Query criteria |
Query criteria are sent to the target platform with other query parameters to reduce the number of returned objects and may improve query performance. Example:Search for devices created in the last 30 days. Copy/paste this script.
Copy
|
| Post-query filter |
To hide unwanted data based on criteria, not supported by the target system in the query criteria, set the filtering conditions here. TIP: Use the Query criteria above to filter objects whenever possible for optimal performance. |
| More Parameters | |
| Initialization script |
Usually, rules use query criteria to limit the query search scope. It improves the performance of the executed rule. Due to PowerShell limitations, using calculated expressions in query criteria is impossible. That is the point where the initialization script can help. You can initialize a global variable in this setting and then use it in query criteria. IMPORTANT:
To use a variable, declared in the initialization script, in
the query scope, it must be global: |
| MS Graph query condition (OData) |
When the MS Graph query condition is specified, it overrides the Query criteria setting. You can use OData filters supported by MS Graph that will be added to API requests. For examples please see this article: How to use Query Builder dialog for Query Criteria and Filter rule settings. |
MaxResults |
Specify the maximum number of objects returned from Microsoft 365. The default value is taken from the Maximum returned results setting on Home > Configuration > Connected Systems Extensions > Microsoft 365 extension settings. |
Related Articles
- Creating Dynamic Groups
- Membership Rule Commands for Active Directory and Microsoft 365 Dynamic Groups
Change History
| Version | Notes |
|---|---|
| 11.2.0 | The command has been added. |
Comments
0 comments
Please sign in to leave a comment.