Le service ProfileUserRestController expose les opérations suivantes :
* search : pour rechercher des profils utilisateur
Recherche de profil utilisateur
L’exemple ci-dessous indique comment effectuer une recherche de profil utilisateur.
SEARCH:
# <CORE_HOST> URL de base de FlowerDocs Core
# <TOKEN> jeton d'authentification
# <PROFILES> profil (équipe)
# <USERNAME> identifiant à rechercher
# <MAX> nombre maximal de résultats retournés (optionnel)
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 = "exemple";
int max = 1;
return profileUser.search(profiles, id, max);
}