@Override
      public LdapSyncEventEntity invoke() throws AmbariException, AuthorizationException {

        LdapSyncEventEntity eventEntity = toEntity(properties);

        for (LdapSyncSpecEntity ldapSyncSpecEntity : eventEntity.getSpecs()) {
          if (ldapSyncSpecEntity.getPrincipalType() == LdapSyncSpecEntity.PrincipalType.USERS) {
            if (!AuthorizationHelper.isAuthorized(ResourceType.AMBARI, null, RoleAuthorization.AMBARI_MANAGE_USERS)) {
              throw new AuthorizationException("The uthenticated user is not authorized to syng LDAP users");
            }
          } else {
            if (!AuthorizationHelper.isAuthorized(ResourceType.AMBARI, null, RoleAuthorization.AMBARI_MANAGE_GROUPS)) {
              throw new AuthorizationException("The uthenticated user is not authorized to syng LDAP groups");
            }
          }
        }

        events.put(eventEntity.getId(), eventEntity);

        return eventEntity;
      }
Ensure that sync events are being processed.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/LdapSyncEventResourceProvider.java