Hi,
I am looking for script in ScriptRunner Listeners to identify whether the current user is the Space Admin or not.
There already is the command to check whether the user is Confluence Adminstrator:
permissionManager.isConfluenceAdministrator(currentUser);
Is there similar one to check for Space Admin?
Thanks,
Vamsi
Have you try the following line of code ?
permissionManager.hasPermission(currentUser, Permission.ADMINISTER, space);
You have to import
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.