and more in a single search tool across platforms. Read the announcement here. |
12/20/2023 09:13 PM
This question relates to the following URL:
We manage the following values as custom properties of user, separated by commas:
{user's departmentname},{user's departmentnumber},{user's titlenumber},{user's titlename}
For example
And we have already created role which name is '1111-2222'
<what one wants to do>
In the Technical Rule, I want to dynamically assign a Role with the same name as the second index of user's customproperty5.
However, if I write a single quotation, I get an error.
How do I write a dynamic role assignment like the above?
12/20/2023 09:18 PM
It works for me
12/21/2023 01:57 AM
Does it work with EnterpriseRoles instead of Endpoint?
For EnterpriseRoles, I get an error if I put a single quote (').
12/21/2023 02:25 PM
Yes it works
${users.customproperty5.split("-")[0]}
12/21/2023 05:03 PM
Thanks for your reply.
As you said, I can create birthright rules.
I create user who have below customproperty20.
Role are there.
It's not working because when user is created, task is not created.
Is it really working?
12/21/2023 05:56 PM - edited 12/21/2023 05:56 PM
I just created rule.
Try below
${user.customproperty5.substring(user.customproperty5.lastIndexOf("-") + 1)} |