docs: def __make_security_group_api_request(server_context, api, user_ids, group_id, container_path):
      """
      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_ids: user ids to apply action to
      :param group_id: group id to apply action to
      :param container_path: Additional container context path
      :return: Request json object
      """
      url = server_context.build_url(security_controller, api, container_path)
  
      # if user_ids is only a single scalar make it an array
      if not hasattr(user_ids, "__iter__"):
          user_ids = [user_ids]
  
      return server_context.make_request(url, {
          'groupId': group_id,
          'principalIds': user_ids
      })