Is there any api to get CUG exempted principal.

to get this exempted CUG principal is there any api available or is there any property to differentiate the normal user and exempted user?
Please any leads will help

to get this exempted CUG principal is there any api available or is there any property to differentiate the normal user and exempted user?
Please any leads will help
Which version of AEM are you using?
If it is prior to AEM 6.5. Use below OSGi component (and associated service)
com.day.cq.auth.impl.CugSupportImpl (This has been deprecated in AEM 6.5)
For AEM 6.5
Check Apache Jackrabbit Oak CUG Exclude List (OSGi componnet uses below service,
org.apache.jackrabbit.oak.spi.security.authorization.cug.CugExclude
Reference:
Custom User Group Mapping in AEM 6.5 | Adobe Experience Manager
Hope this helps.
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.