on
02/08/2023
02:53 PM
- edited on
02/08/2023
03:53 PM
by
Dave
Role name in SIGA | Role attribute in App side |
ABC Global Viewer | ACCOUNT_VIEWER |
ABC Global Power User | ACCOUNT_EDITOR |
ABC Global Admin | ACCOUNT_ADMIN |
Assuming ABC Global Viewer,ABC Global Power User,ABC Global Admin are entitlements, You can try below
"role":"${if(task?.entitlement_valueKey?.entitlement_value.contains('Viewer')){'ACCOUNT_VIEWER'} else if(task?.entitlement_valueKey?.entitlement_value.contains('Admin')){'ACCOUNT_ADMIN'}else if(task?.entitlement_valueKey?.entitlement_value.contains('Power')) {'ACCOUNT_EDITOR'}}"
If these role names are going to be configured in the Dynamic attribute at the endpoint level rather than entitlement, then you can replace task?.entitlement_valueKey?.entitlement_value with the name of the dynamic attribute
Hello saikanumuri,
Could you point me a link to understand how to do the scripting like the one you described above? What does it mean by ? such as task? and task?.entitlement_valueKey? etc. I need learn this part in detail.
I also want to understand in account creation/update JSON configuration, what object I can use, and what attributes of that object I can use etc.
For example, I know I can use connectionJSON, user, task, what else I can use? what about role, rule etc.? Can I know what rule triggered the account operation? what role assignment triggered the account operation etc.?
Hi @saikanumuri
Thanks for commenting on my questions. As you mentioned, I understand about the entitlement from the below.
++++++++++++++++++++++++++++++++++++++++++
Assuming ABC Global Viewer,ABC Global Power User,ABC Global Admin are entitlements, You can try below
"role":"${if(task?.entitlement_valueKey?.entitlement_value.contains('Viewer')){'ACCOUNT_VIEWER'} else if(task?.entitlement_valueKey?.entitlement_value.contains('Admin')){'ACCOUNT_ADMIN'}else if(task?.entitlement_valueKey?.entitlement_value.contains('Power')) {'ACCOUNT_EDITOR'}}"
++++++++++++++++++++++++++++++++++++++++++
But Actual my question is, I need to read it from role name instead of entitlement.
Can you help me on this.
Thanks,
sankar.
Team,
I would appreciate if someone help me on my Query?
Thanks,
sankar.
Hi All,
Can someone help on this?
Thanks,
Sankar.
Hi All,
Can someone help on this?
Thanks,
Sankar.