public Map<String, ?> getPerson(final String uid) {
        val scimService = getScimRequestBuilder(Optional.empty());
        val response = findUser(scimService, uid);
        if (response.isSuccess() && response.getResource().getTotalResults() > 0) {
            val user = response.getResource().getListedResources().getFirst();
            return collectPersonAttributes(user);
        }
        return new HashMap<>();
    }
Gets person from SCIM server.

@param uid the uid
@return the person
support/cas-server-support-scim-core/src/main/java/org/apereo/cas/scim/v2/persondirectory/ScimPersonAttributeService.java