The ProfileUserRestController service displays the following operations:
* search: to search for user profiles
Search user profile
The example below shows how to perform a user profile search.
SEARCH:
# <CORE_HOST> FlowerDocs Core base URL
# <TOKEN> authentication token
# <PROFILES> profile (team)
# <USERNAME> identifier to search
# <MAX> maximum number of results returned (optional)
curl -X GET "<CORE_HOST>/rest/profiles/<PROFILES>/users/<USERNAME>?max=<MAX>" \
-H "token: <TOKEN>"
@Autowired
private ProfileUserRestController profileUser;
@GetMapping
public List<User> search() throws TechnicalException, FunctionalException
{
String[] profiles = {"ALL_USERS"};
String id = "example";
int max = 1;
return profileUser.search(profiles, id, max);
}