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
YukinonYukinon 

SOQL query to get the number of active users assigned to a feature license

May I ask on how can I query the number of active users assigned to a feature license?
SwethaSwetha (Salesforce Developers) 
HI Yukinon,
Recommend reviewing  https://salesforce.stackexchange.com/questions/321017/can-we-query-on-feature-licenses-in-apex-to-get-the-remaining-licenses

You should be able to query the object called ActiveFeatureLicenseMetric

Also see https://developer.salesforce.com/forums/ForumsMain?id=9062I000000Udql

If this information helps, please mark the answer as best. Thank you