问题 I'm writing my own XWiki Authenticator (that extends XWikiAuthServiceImpl ) and therein, I want to create few groups, each with different sets of rights. How do I do it programmatically? Example, XWiki.MyStandardGroup - view , edit , comment XWiki.MyClassicGroup - view , edit , comment , script XWiki.MyAdminGroup - view , edit , commit , script , delete , admin Also, I create the users programmatically. How do I give different access rights to different sets of users? On the conceptual level,