docs: def __make_security_role_api_request(server_context, api, role, email=None, user_id=None, container_path=None):
      """
      Execute a request against the LabKey Security Controller Group Membership apis
      :param server_context: A LabKey server context. See utils.create_server_context.
      :param api: Action to execute
      :param user_id: user ids to apply action to
      :param role: (from get_roles) to remove user from
      :param container_path: Additional container context path
      :return: Request json object
      """
      if email is None and user_id is None:
          raise ValueError("Must supply either/both [email] or [user_id]")
  
      url = server_context.build_url(security_controller, api, container_path)
  
      return server_context.make_request(url, {
          'roleClassName': role['uniqueName'],
          'principalId': user_id,
          'email': email
      })