public interface RecordRoleUpdate
RecordRole
. These methods can only add or remove manually assigned users,
not users added with Dynamic Access Control.Modifier and Type | Method and Description |
---|---|
void |
addGroups(List<Group> groups)
Adds groups to a role.
|
void |
addUsers(List<String> userIds)
Adds users to a role.
|
void |
removeGroups(List<Group> groups)
Removes groups from a role.
|
void |
removeUsers(List<String> userIds)
Removes a user from a role.
|
void addUsers(List<String> userIds)
userIds
- ID of the user to add to the role. Users who already exist in the role are ignored.
Invalid userIds result in batch operation errors under
RecordRoleService.batchUpdateRecordRoles(List)
.void removeUsers(List<String> userIds)
userIds
- ID of the user to add to the role. Users who do not exist in the role are ignored.
Invalid userIds result in batch operation errors under
RecordRoleService.batchUpdateRecordRoles(List)
.void addGroups(List<Group> groups)
groups
- List of Group objects to add to the role. Groups that already exist in the role are ignored.
Invalid Groups will result in errors when batchUpdateRecordRoles() executes.void removeGroups(List<Group> groups)
groups
- List of Group objects to remove from the role. Groups that do not exist in the role are ignored.
Invalid groups will result in errors when batchUpdateRecordRoles() executes.Copyright © Veeva Systems 2017–2019. All rights reserved.