revokeUser method

Future<List<String>> revokeUser({
  1. required String cloudProjectId,
  2. required String email,
  3. List<String>? unassignRoleNames,
  4. bool? unassignAllRoles,
})

Revokes a user from a project by unassigning the specified project roles. If any of the roles do not exist or are not previously assigned to the user, they are simply ignored. If unassignAllRoles is true, all roles on the project are unassigned from the user.

Returns the list of role names that were actually unassigned. Throws NotFoundException if the project does not exist.

Implementation

_i2.Future<List<String>> revokeUser({
  required String cloudProjectId,
  required String email,
  List<String>? unassignRoleNames,
  bool? unassignAllRoles,
}) => caller.callServerEndpoint<List<String>>('projects', 'revokeUser', {
  'cloudProjectId': cloudProjectId,
  'email': email,
  'unassignRoleNames': unassignRoleNames,
  'unassignAllRoles': unassignAllRoles,
});