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
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