08/31/2023
11:51 PM
- last edited on
09/01/2023
12:28 AM
by
Sunil
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 |
09/01/2023 12:43 AM
hi @Sankar ,
Can you share the JSON you're using?
09/01/2023
01:03 AM
- last edited on
09/01/2023
01:12 AM
by
Sunil
Hi Naveen,
The below is the JSON I am using right now. I hard coded the role attribute value. But I need to read from role name s mentioned above. which is the best way to achieve it.
+++++++++++++++++++++++
{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "userAuth",
"showResponse": true,
"url": "removed",
"httpMethod": "POST",
"httpParams": "{\"email\":\"${user.email}\",\"name\":\"\",\"accountId\":\"1110602\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"role\":\"ACCOUNT_VIEWER\",\"uiTheme\":\"BLACK_THEME\",\"active\":\"true\"}",
"httpHeaders": {
"content-Type": "application/json",
"Accept": "application/json",
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}
+++++++++++++++++++++++
If you need more details please let me know.
Thanks,,
Sankar.
[This message has been edited by moderator to mask url]
09/01/2023 01:31 AM
Thanks for the Json, @Sankar May I know how are you requesting the roles? Is it from the "Request access for others" or "Request enterprise roles" tile?
09/01/2023
01:44 AM
- last edited on
09/01/2023
02:39 AM
by
Sunil
Hi Naveen,
From ARS > Request access option I need to use.
Thanks,
Sankar
[This message has been edited by moderator to mask PII info. Note: Please make sure to mask any PII,URL's, Company/Employee Names/email addresses]
09/10/2023 09:03 PM
Hi All,
Can some help me with solution on this?
Thanks,
Sankar.
09/10/2023 09:18 PM
${task.assignedFromRole.role_name}
09/10/2023 09:24 PM
Hi @rushikeshvartak ,
Can you please modify the role attributes from the below JSON. so that I can clearlyunderstand how can I use this.
++++++++++++++++++++
+++++++++++++++++++++++
{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "userAuth",
"showResponse": true,
"url": "removed",
"httpMethod": "POST",
"httpParams": "{\"email\":\"${user.email}\",\"name\":\"\",\"accountId\":\"1110602\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"role\":\"ACCOUNT_VIEWER\",\"uiTheme\":\"BLACK_THEME\",\"active\":\"true\"}",
"httpHeaders": {
"content-Type": "application/json",
"Accept": "application/json",
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}
+++++++++++++++++++++
Thanks,
Sankar.
09/17/2023 07:33 PM
store values in roles customproperty and use customproperty in JSON
09/15/2023 08:40 AM
Hi All,
Can someone help me with the updates to fix this issue.
Thanks,
sankar.