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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.