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

Saviynt api -Get List of Users - how to find total number of users ?

IAM_99
Regular Contributor II
Regular Contributor II

Hi Team,

We have this api for to get USer list

{{url}}/ECM/{{path}}/user?q=accountExpired:0&fields=firstname,lastname,username&sort=username&order=desc&offset=2&max=2

but its listing total users on the results.

Can you let us know how to find total number of users in saviynt from api ?

5 REPLIES 5

NikhilGuptaSav
Saviynt Employee
Saviynt Employee

You can create an analytics and run analytics api to fetch the user count

rushikeshvartak
All-Star
All-Star

 

rushikeshvartak_0-1667933608608.png

{{url}}/ECM/{{path}}/user?q=statuskey:0&fields=firstname,lastname,username&sort=username&order=desc&max=600


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

avinashchhetri
Saviynt Employee
Saviynt Employee

@IAM_99,

The max parameter allows you to define the number of results you can retrieve in a call. It is an optional parameter but defaulted to 50. You could use this to get the total users by passing an abnormal high number in your get call but for production environment purposes, it is not recommended. A better approach would be to create an analytics as Nikhil suggested and the use the API to get the details.

 

 

Regards,
Avinash Chhetri

IAM_99
Regular Contributor II
Regular Contributor II

Ok Thankyou

Dave
Community Manager
Community Manager

@IAM_99 - Be sure to click the "Accept As Solution" button on the reply that best answered your question.  This will help future users who have a similar question. Thank you.