private boolean hasAdmin(Request request) {
    Map<String, Object> first = Iterables.getFirst(request.getBody().getPropertySets(), null);
    return first != null && first.containsKey(UserResourceProvider.USER_ADMIN_PROPERTY_ID);
  }
Returns if the request contains admin property
@param request
@return
ambari-server/src/main/java/org/apache/ambari/server/audit/request/eventcreator/UserEventCreator.java