I have to provide the server admin roles via First Spirt access api.
I tried with the setAdminMode(true), but unfortunately it is not assigning the server admin permission to the user.
Could you please help us on this?
Version : 5.1.507
Dear Marcel Liebgott,
we tried the below code to remove the user from admin, but the changes was not reflected,
Hi Marcel Liebgott,
Sorry, I have mentioned the wrong code in previous comment.
The code which I am trying is below one.
But I am getting the exception
java.lang.SecurityException: User 'test (test)' is not a server admin
this is correct - the api means:
Enable admin mode for this user with extended permissions. Admin mode is enabled by default if the user is a
server admin, but may be explicity switched off in some environments.
Thank you Marcel Liebgott,
As per the api documentation, only server admin's can switch to Admin mode.
true if this user is the super admin or a member of a server admin group. Only server admins are allowed to
switch to admin mode.
so, how we can promote the user as ServerAdmin.
What is the difference between AdminMode and ServerAdmin?
you can set a user as server admin in the "ServerManager".
The difference between "Server Admin" and "Admin Mode" is that the Server Admin has specific permissions to edit some server properties (in the sever manager)