Is there any API that can fetch "Permission groups and access rules" configured

How about some more info, examples, etc.. this is not really enough info to get it working, and tbh the documentation is woeful

Thanks,

Pete