Summary: Custom generation tokens allow using the values of the attributes of the user who is running the action (initiator) in the Attribute Policies that are applied to the creation of Active Directory and Microsoft 365 objects. Custom generation tokens should be set in the corresponding Web Action configuration form.
Follow these step-by-step instructions to create the team whose name is prefixed with the word “Team_” and also has the department name of the initiator.
Applies to: Cayosoft Administrator 7.2.0 or later
ID: KB20200525-1
Configuration
- In the Administrator Console navigate to Home > Configuration > Web Portal > Web Actions > Microsoft 365 > New Team
- Open the Custom Generation Tokens section
- Specify this script: {@{'InitiatorDepartment'=GetInitiatorProperty('department')}}, InitiatorDepartment is the token that will be used in the Attribute Policy to get the department value of Web Action initiator.
- Click Save changes
- Navigate to Home > Configuration > Web Portal > Attribute Policies and create a new policy. For more information about Attribute Policies see this article: https://support.cayosoft.com/hc/en-us/articles/360015404191
- Add policy scope:
- Select the team name attribute and configure the generation value for it:
- On Attribute Policy Setting for Name check Generation value
- Click ...
- On Expression Builder in Tokens section click Add
- Select Text as Token Type and set Team_
- Click Ok
- Click Add to add one more token
- Click Set custom property
- Specify InitiatorDepartment token name that you specified in the New Team Web Action:
- Save changes in the Attribute Policy
- Sign-in to Web Portal
- Check that the user account you are using for sign-in has a value in the department attribute and has permission to create Teams.
- Click New Team Web Action
As a result, you will see that the team name is prefixed with the word “Team_” and also has the department name of the Web Action initiator.
Comments
0 comments
Please sign in to leave a comment.