Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Pass multiple roles as part of the payload create json

DG1811
New Contributor III
New Contributor III

Hi Team,

We have below payload to be passed as part of the createjson.

{
    "data": {
        "email": "testuser2@domain.com",
        "siteRoles": [
            {
                "id": "Siteid1",
                "roles": [
                    "Role1"
                ]
            },
            {
                "id": "siteid2",
                "roles": [
                    "Role2"
                ]
            },
            {
                "id": "siteid3",
                "roles": [
                    "Role1"
                ]
            }
        ],
        "scope": "site",
        "fullName": "testuser2",
        "fullNameReadOnly": "true"
    }
}

 

Now the user can select multiple siteid as and then can select adjacent roles into it. But single site will have single siterole. 

So the user can request multiple siteid.

We have the Siteid reconciled to saviynt as entitlementtype. Please suggest how we can handle this case. 

Also please suggest the create account json for this scenario.

Thanks

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

Refer https://forums.saviynt.com/t5/community-knowledge-base/rest-conn-retain-existing-entitlements-and-on...


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

DG1811
New Contributor III
New Contributor III

Hi ,

I would request for a CreateAccountJSON format for the below payload.

{
    "data": {
        "email": "testuser2@domain.com",
        "siteRoles": [
            {
                "id": "Sitename1",
                "roles": [
                    "Role1"
                ]
            },
            {
                "id": "sitename2",
                "roles": [
                    "Role2"
                ]
            },
            {
                "id": "sitename3",
                "roles": [
                    "Role1"
                ]
            }
        ],
        "scope": "site",
        "fullName": "testuser2",
        "fullNameReadOnly": "true"
    }
}

 

Now currently the selection page looks like the below in ARS.

DG1811_0-1724052149481.png

So on selection of SiteName the SiteRole populate. So if I select sitename1, it will then allow me to select the siteroles for it. 

Now we have two questions. 

1. We want to select multiple sitename in a single request and also then select multiple siteroles for each. How to acheive that, currently we are able to select 1-1.

2. Also we would need to have the createaccoutn json to support the payload shared above. 

Please suggest. 

Thanks

You can't pass entitlement name in create account JSON. In this case you need to also create dynamic attributes


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi @rushikeshvartak ,
Can you give us the addaccessjson for this payload, and also the way to achieve the process in ARS. 

Thanks