Rule description
This rule queries Microsoft 365 Groups and Teams according to the specified query criteria and then assigns an owner to the Groups and Teams and notifies an owner about it.
When to use this rule
Use this rule to get a list of Microsoft 365 Groups and Teams and assign them a new owner. You can filter to get Microsoft 365 Groups and Teams that have no owners or all owners are disabled. As a new owner you can select to assign:
- Random enabled member except for guests.
- Any random member. In this case, even disabled users can be added to owners.
- Microsoft 365 connection account.
Rule Settings
Query Section
Setting name | Description |
---|---|
Limit scope to this Azure AD Administrative Unit |
You can select Azure AD Administrative Unit to limit the Web Query 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. Tip: For different samples on the criteria builder, see KB20180410-1.
|
Filter by owners |
You can filter Groups and Teams by:
|
Statistics properties to display |
Specify statistics properties to display for each object in the rule scope. |
Other Query Settings |
|
Properties to display |
To display additional properties for each object found by the query, add those properties to the list. |
System properties |
List of properties required for this rule to be executed correctly. |
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: For optimal performance, use the Query criteria above to filter objects whenever possible.
|
Sort by |
Sort result object list. |
Limit result set |
The maximum number of Teams returned from Office 365. The default value is taken from the Maximum returned results setting on HOME > CONFIGURATION > Microsoft Office 365 settings. |
MS Graph query condition (OData) |
By default Query criteria is used. But when it is specified, it overrides the Query criteria setting. Example: find all Teams with displayname starting from 'Team.' (startswith(displayName,'Team')) |
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, it is not possible to use calculated expressions in query criteria. 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: $global:<variable name>.
|
Microsoft Graph advanced queries |
Enables consistency level eventual which uses an index that might not be up-to-date with recent changes to the object. |
Action Section
Setting name | Description |
---|---|
Assign owner |
Specify the owner you want to assign:
|
Notify owner |
|
Notify owner | Specify whether you want to notify the Group or Team owner when he\she is added to a Group or Team owners. |
Additional to | Additional email can be sent to Default Notify & Alert Email Address - usually, this is the administrator's email address. |
CC, BCC | Email address where the copy will be sent. |
From | Users can receive emails from default SMTP from address. |
Subject |
Email subject. Tip: It is possible to customize email subject by using different tokens, see Customizing an automation rule or web action output email – Cayosoft Help Center.
|
Message |
Message text. Tip: It is possible to customize email message by using different tokens, see Customizing an automation rule or web action output email – Cayosoft Help Center.
|
Limit the number of emails sent per minute |
An integer value that represents the number of emails sent per minute by this rule. To change the default value, navigate to Home > Configuration > Settings > Email Settings (SMTP). The default limit for Office 365 SMTP gate is 30 emails per minute. |
Output Section
This section defines the output format of this rule.
To get more information about this section, please see the Output section article.
Enforce/Schedule section
This section defines the schedule for how often to run the rule.
To get more information about this section, please see the Enforce/Schedule section article.
Change History
Version | Notes |
---|---|
8.2.0 | The rule is introduced in the product. |
Comments
0 comments
Please sign in to leave a comment.