assignRolesToUser() Method

In SecurityService, use the assignRolesToUser() method to assign new roles to a user in Publisher.

Signature

String[] assignRolesToUser(String userName, String[] roleNames, String adminUser, String adminPassword);

Parameters for assignRolesToUser() Method

Parameter Description

String userName

The user to which to add the role or roles.

String[] roleNames

The name of the role to add to the user. For example, "Financial Users".

String adminUser

The user name for a user with administration privileges.

String adminPassword

The password for the administration user name.