Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

Unable to complete user creation flow using REST APIs

Anurag
Regular Contributor
Regular Contributor
We have a sign up functionality though which we allow creation of new user in Saviynt SSM and the request goes through approval workflow, we are utilizing /createUserRequest API for user creation.
 
We observed that the API generates request but no task is generated for this request and since the API we are currently using /approveRejectDetailRequest requires mandatory attribute taskid we are not able to approve the request raised.
 
is this an expected behavior of /createUserRequest API that it won't generate a task?
3 REPLIES 3

pruthvi_t
Saviynt Employee
Saviynt Employee

Hi @Anurag ,

To approve user creation request, can you please explain your use case around using /approveRejectDetailRequest API, because this API is used to take action on each line item in the request. Can you please try to use /approveRejectRequest which is used to approve whole request, as this wouldn't need any taskid to take action on the request. You'll just need REQUESTKEY or requestid for it.

Please take a look at the Saviynt API documentation for using /approveRejectRequest and it's required params.

https://documenter.getpostman.com/view/1797923/TVsvi7G2?version=latest#805907d6-6279-43a8-ad62-6290c...

Thanks,


Regards,
Pruthvi

Anurag
Regular Contributor
Regular Contributor

Hi Pruthvi

We have custom UI screen where the approver will get all approval tasks assigned to them and since almost all type of request we created had associated tasks we were using approveRejectDetailRequest API.

if the expected behavior of /createUserRequest API is that it won't create tasks we will have to use /approveRejetRequest in those cases.

We had tried the /approveRejetRequest API as well, but it is failing with configuration not set error as shown in below screenshot.

Anurag_1-1679287845957.png

priyanka_jha is an admin user in above case but not sure of the missing configuration here.

Thanks 

pruthvi_t
Saviynt Employee
Saviynt Employee

Hi @Anurag ,

In the savrole, we have few request related configurations that needs to be set as per the requirement. So please check if below configs are enabled in the ROLE_ADMIN in your environment

  • Approve / Reject from List Page
  • Show Actions in Request Approval List
  • Show Actions in Request History List

Kindly enable the configs and also check the other configs as in below screenshot and run the same test. Screenshot 2023-04-04 at 4.20.16 PM.png

Thanks,


Regards,
Pruthvi