function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yohann ChevreuxYohann Chevreux 

How to select users from Connected App Usage or Identity Event Logs ?


I'm developping a push notification system for a mobile application. As thousands of users can access to the mobile application, I'd like to send notifications only to users who have already connected once with the app.
I've seen these informations are displayed in Administration Setup with the ConnectedApp OAuth User's Usage.
I can also get these informations from a Identity Users Report by creating a report type based on User->Identity Event Logs.

My question is, is it possible to get these informations through apex, using api or soql query?


I believe you can't do a direct query, you have follow approach described here -

Rest API call to event object