We need to identify the list of inactive users in an organization who have not logged into the apigee edge MUI from some duration like past 6 months. We are not able to find any such management api call to get the data.
How can we achieve this ?
Is there any Management API call available that can be used ?
We need this data to delete the inactive users in apigee edge.
@Neetu Garg Have you found the solution for it? If so can you pls share here as we also have the same requirement. Your answer will be helpful. Thanks in advance.
The best approach would be to setup a machine user with the necessary permissions to periodically remove users’ roles from your org(s) automatically after 90 days of inactivity. This will require a bit of scripting, as we do not have such a feature available out of the box. There are three stages to fully automate this:
For each role in your org that you assign to your users, this API will give the list of users assigned to that role. For example, you might have a ‘businessuser’ role. You could use this API to find all the users currently with the businessuser role in your org.
This API takes a username, startDate, and endDate. You could use it to get the user’s activity for the last 90 days. Be careful with this as it will include activity for all orgs they are assigned to. Please check the org before deleting.