removeRolesFromUser() Method

In SecurityService, use the removeRolesFromUser() method to remove roles from a user in Publisher.

Signature

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

Parameters for removeRolesFromUser() Method

Parameter Description

String userName

The user from which to delete the role or roles.

String[] roleNames

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

String adminUser

Specifies a user name for a user with administration privileges.

String adminPassword

Specifies the password for the administration user name.