Github user michaelarusso commented on a diff in the pull request: https://github.com/apache/usergrid/pull/454#discussion_r48671653 --- Diff: stack/services/src/main/java/org/apache/usergrid/management/cassandra/ManagementServiceImpl.java --- @@ -1608,6 +1608,12 @@ public void addAdminUserToOrganization( UserInfo user, OrganizationInfo organiza } EntityManager em = emf.getEntityManager( smf.getManagementAppId() ); + + if(em.getCollection(organization.getUuid() ,"users",Query.fromQL( "select * where uuid ="+user.getUuid() ),Level.IDS ).size() >0){ + logger.trace( "Found value: {} already in collection",user.getName() ); --- End diff -- maybe change to debug level and wrap in if statement for isDebugEnabled ?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---