Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Which SAVRole webservice access is required for /fetchTasks API call?

Miko
New Contributor III
New Contributor III

Hello Saviynt,

We want to create a serviceID profile on Saviynt to only handle API call to pull tasks.

We  created custom SAV Role and added below webservices .

Miko_0-1715970638012.png

However, API is not returning task lists.  For Admin role, we see all task list

 

Miko_1-1715971088277.png

 

Can you advise if there is/are missing webservice need to be added for custom SAV Role?

Thanks

6 REPLIES 6

PremMahadikar
Valued Contributor
Valued Contributor

Hi Miko,

The Webserivce API is webservice_apii_v5_fetchTasks which you have already added.

Can you see those task once you login with that user assigned with custom SAV role?

I think, you won't see them.

Can you refer and try to replicate the solution from this article: Solved: Custom Sav role issue - Saviynt Forums - 73238

Create a ROLE_TASKADMIN SAV role and try to add below features:

PremMahadikar_0-1715979895127.png

Once done, try to hit the API, you should see the response.

 

If this helps your answer, please select Accept As Solution and hit Kudos

Miko
New Contributor III
New Contributor III

Hi Prem,

After adding ROLE_TASKADMIN, it works. However, we want to restrict this serviceID only pull task records rather than making changes to tasks. This ROLE_TASKADMIN is allowing to update task though

Do you have some other ways to make it work?

Regards,

Michael

rushikeshvartak
All-Star
All-Star

webservice_apii_v5_fetchTasks


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Miko
New Contributor III
New Contributor III

Hi Rushikesh,

We already added this webaccess to SAV Role and it is not working though

Regards

This is expected as you are not owner of task hence fetch task is not working. You need to use ROLE_TASKADMIN sav role.


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

PremMahadikar
Valued Contributor
Valued Contributor

@Miko ,

  • Worth trying this option and check if you can update the task from UIPremMahadikar_0-1716305091633.png

Speaking about API: Saviynt API's are controlled by Web Service Access under SAV roles. Please expose only webservice_apii_v5_fetchTasks access and not Update Tasks related API access

 

If the above doesn't work, below would be another option (a workaround):

  1. Please write an analytic query to pull the task from pending and completed with necessary columns
  2. Run the analytics using Saviynt API or you can make it scheduled from UI
  3. Fetch the analytic records using {{URL}}/ECM/{{path}}/fetchControlDetailsES

 

If this helps your question, please consider selecting Accept As Solution and hit Kudos