Trent_Vance | 2022-06-16 18:20:34 UTC | #1
I'm creating a report that details cloned users in all of my clients' orgs. I first loop through all of the Regional Partner orgs and execute:
GET /api/v2/orgauthorization/trustors
This brings back all of the client orgs that have setup a trust against that regional Partner Org. From there, I loop through all of the clients' OrgIds, and execute:
GET /api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers
This brings back a list of all cloned users from my partner org, that have been created in all of the client orgs. So far, so good.
But what I am looking for, is the date which all of the cloned users were created. Has anyone ran across this before?
The report/app I'm attempting to build will send a notification to all of the cloned users asking them to remove the clone from the respective client orgs. But I only want to do this after a certain amount of time has elapsed between when the initially cloned themselves into the Client Org and "now".
I've attempted to pull the Users API from the partner Org, for each respective cloned user and examine dateLastLogin. But that is when they last logged into the Partner Org. And doing the same thing from a client org also doesn't show me anything useful.
I've also examined lastTokenIssued, but that doesn't seem to help either (because users can be cloned into multiple client orgs at a time and I need the cloned user creation date of each respective client org).
Lastly, I've tried to use POST /api/v2/orgauthorization/trustor/audits, but can't seem to get the syntax down correctly. Is anyone familiar with this call?
Are there any other tricks or ways to find the date a cloned user was created for a client org?
Thanks!
tim.smith | 2022-06-16 20:53:11 UTC | #2
Unfortunately, the creation date of the cloned user is not tracked. You can request new features and share your use case at https://genesyscloud.ideas.aha.io/.
Trent_Vance | 2022-06-16 21:15:09 UTC | #3
All good. Thanks for the confirmation, my friend. At least I know I'm not really blind this time! :-)
Thanks again! Trent.
John_Carnell | 2022-06-21 12:25:40 UTC | #4
This post was migrated from the old Developer Forum.
ref: 15192