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

[Access Request API]: Add a user to an ENTREPRISE role through API using createrequest

KhaoulaD
New Contributor III
New Contributor III

Hello,

 

We want to add users to roles through API calls using "createrequest" with the following payload and it worked only if the role is of "APPLICATION" type but in our case we need to add user to entreprise roles not Application type:

{
    "requesttype":"ADD",
    "roletype":"ENTERPRISE",
    "username":"requestee_username",
    "endpoint":"endpoint_name,
    "securitysystem":"securitysystem_name",
    "requestcomments":"comment",
    "requestor":"requestor_username",
    "roles":[
        {
            "rolename":"role_name",
            "startdate":"10-01-2980"
        }
    ]
}
 
We have followed the latest Saviynt API documentation using this payload for ENTREPRISE roles:
{
    "requesttype":"ADD",
    "roletype":"ENTERPRISE",
    "username":"requestee_username",
    "requestcomments":"comment",
    "requestor":"requestor_username",
    "roles":[
        {
            "rolename":"role_name",
            "startdate":"10-01-2980"
        }
    ]
}
 
But it crashed with 401 error. 
The permisssions and all confugurations are set-up correctly.
 
Could you please help on the topic to be able to add users to ENTREPRISE roles through API requests?
 
Best Regards,
Khaoula DOUHI
1 REPLY 1

rushikeshvartak
All-Star
All-Star

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️

 

You must have token issue


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