There may be situations where gathering all information of users who have logged in to channel customer CloudHealth tenants is requested. Some of this information can be captured for specific timeframes if requested.
For privacy reasons, CloudHealth cannot provide pointed login data for users. The best log available is “last sign in” which would require going into the customer tenant, selecting Setup > Admin > Users and then exporting the data to a CSV.
CloudHealth does have the ability on a tenant-by-tenant basis to get advanced insight which would allow for number of views in each month and repeat visits, however, it would be logged to an anonymized ID. Be advised that there may not be a way to provide a view of customers by looking at your tenant data for a request like this.
Alternatively, the partner can use the shared GraphQL APIs to obtain the same information. Using a token (Client API ID) obtained for each channel customer in question, users and their last log in and activity timestamp can be obtained. Utilizing the GraphQL endpoints will help with this.
First, a partner will need to obtain the Client API ID:
https://help.cloudhealthtech.com/graphql-api/#generate-an-api-token-using-the-client-api-id
Using the Client API ID, retrieve the last sign-in, name, and email in each of those tenants:
https://help.cloudhealthtech.com/graphql-api/#retrieve-list-of-users-and-user-groups-in-a-flexorg
The JSON payload would look something like this:
query UserLogins {
users(first: 10) {
pageInfo {
hasNextPage
endCursor
}
edges {
node {
id
lastSignIn
lastActivity
}
}
}
}
Be advised that logic may need to be scripted that allows for multiple pages of user results, depending on the size of the customer.