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

ECM/api/fetchTasks how to filter by tasktype

zzz1qaz
New Contributor
New Contributor

fetchTasks unable to filter by tasktype

please find the attachment, no matter what tasktype I set in the body, it ignores the tasktype

tasktype = 3 should be "New Account" according to the document but instead, it returns different tasktypes. e.g. Update Account|Remove Access|Disable Account|New Account....
Saviynt Enterprise Identity Cloud API Reference v24.5 (getpostman.com)

 

4 REPLIES 4

stalluri
Valued Contributor
Valued Contributor

@zzz1qaz 

curl --location -g '{{url}}/ECM/{{path}}/fetchTasks' \
--header 'Authorization: Bearer {{token}}' \
--form 'statusint="1"' \
--form 'source="WEBSERVICE"' \
--form 'tasktype="3"' 

or 
curl --location -g '{{url}}/ECM/{{path}}/fetchTasks' \
--header 'Authorization: Bearer {{token}}' \
--form 'statusint="1"' \
--form 'source="WEBSERVICE"' \
--form 'tasktype="NEWACCOUNT"' 

or 
curl --location -g '{{url}}/ECM/{{path}}/fetchTasks' \
--header 'Authorization: Bearer {{token}}' \
--form 'statusint="1"' \
--form 'source="WEBSERVICE"' \
--form 'tasktype="NEW ACCOUNT"' 


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

rushikeshvartak
All-Star
All-Star
  • It works well
  • 1= Add Access
  • rushikeshvartak_0-1725505349641.png

     

  • 2= Remove access
  • rushikeshvartak_1-1725505366851.png

    3= New Account

  • rushikeshvartak_2-1725505381587.pngSource Value Mapping Value Description

    ADD

    1

    Task created when the user requests for new access and the request approval is completed.

    REMOVE ACCESS

    2

    Task created when the user requests for removing access and the request approval is completed.

    NEWACCOUNT

    3

    Task created when the user requests for a new account and the request approval is completed.

    ROLE REQUEST

    4

    Task created when the user requests for a new role and the request approval is completed.

    CHANGEPASSWORD 

    5

    Tasks created when the user requests for changing the account password, changing the account password for others, and changing the service account password and the request approval is completed.

    ENABLE ACCOUNT

    6

    Tasks created when the user request for enabling the account and the request approval is completed.

    PROPOSED ACCOUNT OWNERS

    7

     

    DELETE ACCOUNT

    8

    Tasks created when the user request for deleting an account and the request approval is completed.

    UPDATE USER

    9

    Tasks created when the user request for updating the user information and the request approval is completed.

    UPDATE ACCOUNT 

    12

    Tasks created when the user request for updating the account information and the request approval is completed.

    PROPOSED Entitlement OWNERS 

    13

     

    DISABLE ACCOUNT 

    14

    Tasks created when the user request for disabling the account and the request approval is completed.

    MODIFY PRIVILEGE 

    23

    Tasks created when the user request for modifying the existing privileges and the request approval is completed.

    CREATE ENTITLEMENT

    24

    Tasks created when the user request for creating entitlement and the request approval is completed.

    UPDATE ENTITLEMENT ACCESS ADD

    25

     

    UPDATE ENTITLEMENT ACCESS ADD

    26

     

    UPDATE ENTITLEMENT

    27

    Tasks created when the user request for updating the entitlement and the request approval is completed.

    DELETE ENTITLEMENT 

    28

    Tasks created when the user request for deleting an entitlement and the request approval is completed.

    FIREFIGHTER ID GRANT ACCESS

    29

     

    FIREFIGHTER ID REVOKE ACCESS

    30

    Tasks created when the user request for revoking the firefighter access and the request approval is completed.

    UPDATE ACCESS END DATE

    31

    Tasks created when the user request for updating the access end date and the request approval is completed.

    LOCK ACCOUNT

    32

    Tasks created when the user request for locking the account and the request approval is completed.

    UNLOCK ACCOUNT

    33

    Tasks created when the user request for unlocking the account and the request approval is completed.

    FIREFIGHTER INSTANCE GRANT ACCESS

    34

     

    FIREFIGHTER INSTANCE REVOKE ACCESS

    35

     

    FIREFIGHTER ACCESS ALERT

    36

     

    CREATE ORGANIZATION

    37

    Tasks created when the user request for creating the organization and the request approval is completed.

    UPDATE ORGANIZATION

    38

    Tasks created when the user requests for updating the organization and the request approval is completed.


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

zzz1qaz
New Contributor
New Contributor

Thanks, I was using /api/fetchTasks and ignored this filter. when I use /api/v5/fetchTasks, it worked

Please click the 'Accept As Solution' button on the reply (or replies) that best answers your original question and hit 'Kudos' button 👍.


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