Assign a user property on user created based on their email domain
Original Question or Issue:
How can you automatically set a user's property based on their email domain when they are created? For example, you could assign the user to a group or a policy.
Environment:
- Product - FileCloud Server
- Version - Any
- Platform - Any
Steps to Reproduce:
Error or Log Message:
Defect or Enhancement Number:
Cause:
Resolution or Workaround:
This feature is currently not supported.
A workaround would be to set the property via our API invoked through a workflow. This requires an API script to check the user properties on user creation, identify the email domain, and set the user property.
As an example, script workflow can be like this:
- Create a workflow to trigger a script when a user is created
- This script should look for the newly created user in the system using API getlatestusersadded for example
https://fcapi-admin.filecloud.com/#/user/getlatestusersadded - Then do the checks in your API script to check the domain for this user from the response for the API result
- Add the user to a specific group using the addmembertogroup API https://fcapi-admin.filecloud.com/#/group/addmembertogroup based on the domain.
- Note that creating API script doesn't come under our normal support. Our customers will be responsible for developing the script to utilize our APIs. Alternatively, our professional services team can create the script for you, which is a paid service.
- When created based on an email domain, setting a user property is currently limited to only excluding email domains where the workflow will apply. Specifying an email domain to which the property will be set is not currently supported in the UI
Notes: