Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Dynamic Assign in Technical Rule by using split user's attribute

JPMac
Regular Contributor
Regular Contributor

This question relates to the following URL:

https://forums.saviynt.com/t5/saviynt-knowledge-base/how-to-configure-dynamic-assignment-in-technica...

 

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

JPMac_0-1703134601461.png

And we have already created role which name is '1111-2222'

JPMac_1-1703135263164.png

<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.

JPMac_3-1703135478331.png

How do I write a dynamic role assignment like the above?

 

 

 

 

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

It works for me 

rushikeshvartak_0-1703135884633.png

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

JPMac
Regular Contributor
Regular Contributor

@rushikeshvartak 

Does it work with EnterpriseRoles instead of Endpoint?
For EnterpriseRoles, I get an error if I put a single quote (').

Yes it works 

${users.customproperty5.split("-")[0]}

rushikeshvartak_0-1703197507180.png

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

JPMac
Regular Contributor
Regular Contributor

@rushikeshvartak 

Thanks for your reply.

As you said, I can create birthright rules.

JPMac_0-1703206860966.png

I create user who have below customproperty20.

JPMac_1-1703206875413.png

Role are there.

JPMac_2-1703206939831.png

It's not working because when user is created, task is not created.

Is it really working? 

 

I just created rule.

Try below 

${user.customproperty5.substring(user.customproperty5.lastIndexOf("-") + 1)}
 

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.