I am creating user in my Java backed webscript and I want to make this user administrator. How can I add this newly created user to the "Administrator" group?
I tried this, but it throws error -
authorityService.addAuthority("Administrators", userName);
How can I achieve this?
TIA,
- Manish