AD Users | Assign Teams Policy
Rule description
This rule queries the specified Active Directory user scope and assigns Microsoft Teams policies to each user that satisfies query criteria in Microsoft Teams.
NOTE: Before using this rule in the Cayosoft Administrator Console, navigate to Configuration > Connected Systems Extensions > Microsoft 365 and set the Connect to Microsoft Teams option to Yes.
This rule also supports mapping between the Active Directory user account and Cloud user account by anchor attributes. For details, please see the How to map Active Directory users to Office 365 cloud users article.
When to use this rule
Use this rule when you need to perform bulk Teams policy assignments to Active Directory users that have the corresponding account in Office 365.
If Teams policy configuration depends on Active Directory user attribute values, you should use a CSV file where the columns correspond to Teams policies. You can use the template CSV file provided with the rule, or create a file in Microsoft Excel and export it as CSV.
Rule settings
Query section
| Setting name | Description |
|---|---|
| Use previous provision rule results instead of AD query results
|
When using this rule in a runbook, set this rule to use the result set of the previous rule in that runbook. You can use this option with the following rules:
|
Limit scope to this domain or OU |
This setting defines the search query scope. To improve query performance, limit the scope to a specific OU. IMPORTANT: To test the rule configuration, limit the rule scope to an OU that contains test accounts or objects and use the Preview feature. |
AD query criteria |
Query criteria are sent with the query and may improve query performance. TIP: For additional information on the criteria builder, see the How to use Query Builder dialog for Query Criteria and Filter rule settings. |
Filter AD query results |
To hide unwanted data based on criteria set the filtering conditions here. TIP: For optimal performance, use the Query criteria above to filter objects whenever possible. |
| Maximum number of users | Specify the maximum number of users to modify in the defined scope. |
Map Settings from File | |
NOTE: If no data source file is set, all settings in the Map Settings from File section will be ignored. In this case, the rule will assign specified Teams policies to all Active Directory users in the rule scope. | |
Data source |
Select data source. |
Separator used in file |
Specify the separator used in the source CSV file. |
Data source anchor attribute |
Select a column in the data source that contains the attribute value for identifying and mapping a computer. |
Active Directory anchor attribute |
Defines the attribute in the Active Directory to which the Data Source anchor attribute is to be compared. |
Users with anchor not found in the file |
You can select what users should be assigned Teams policies: those whose anchor is not found in the CSV file or only those whose anchor is found in the CSV file. |
More Options | |
Returned Properties |
To display additional properties for each object found by the query, add those properties to the list. |
Sort by |
Sort result objects list. |
Exclude disabled AD users |
Specify if disabled AD user accounts should be excluded. |
Maximum number of users |
By default, all objects that you have provisioned in Microsoft Office 365 are returned. TIP: It is possible to change the default value in the extension settings. |
Initialization Script | |
Script |
Usually, rules use query criteria to limit the query search scope. It improves the performance of the executed rule. Due to the 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: Example: Update AD users, created in the last ten days.
|
Action section
| Setting name | Description |
|---|---|
|
Meeting policy Messaging policy Live events policy App permission policy App setup policy Call park policy Calling policy Caller ID policy Teams policy Upgrade (coexistence) policy Emergency calling policy Emergency call routing policy Give feedback policy IP Phone policy Cloud video interop policy External access policy Online voicemail policy |
Specify the values for the Teams policies. These policies are the same as in the Microsoft Teams admin center.
|
More Options | |
Wait for Microsoft account creation (minutes) |
This setting is applied only when this rule is used as a post rule for the New user web action. |
Initialization script | |
Script |
Usually, rules use query criteria to limit the query search scope. It improves the performance of the executed rule. Due to the 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: Example: Update AD users, created in the last ten days.
|
Output Section
This section defines the output format of this rule.
To get more information about this section, please see the Rule 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 Rule Enforce/Schedule section article.
Comments
0 comments
Please sign in to leave a comment.