@Override
  public RequestStatus createResourcesAuthorized(Request request)
      throws SystemException,
      UnsupportedPropertyException,
      ResourceAlreadyExistsException,
      NoSuchParentResourceException {
    final Set<UserRequest> requests = new HashSet<>();
    for (Map<String, Object> propertyMap : request.getProperties()) {
      requests.add(getRequest(propertyMap));
    }

    createResources(new Command<Void>() {
      @Override
      public Void invoke() throws AmbariException {
        try {
          createUsers(requests);
        } catch (AuthorizationException e) {
          throw new AmbariException(e.getMessage(), e);
        }
        return null;
      }
    });

    return getRequestStatus(null);
  }
Create a new resource provider for the given management controller.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UserResourceProvider.java