Skip to main content
By default, the Users REST API returns the caller and their roles. To return others, declare a bean of type IAuthoritiesProvider. It replaces the default, whatever the configuration order.
IAuthoritiesProvider is experimental and may change in future versions without notice.

Where the information comes from

The caller and their roles come from AuthorityQuery.getCaller(); any other user or role comes from your configuration or directory. Any caller reaching the endpoint, anonymous ones included, sees what the provider returns for them.

Hide technical roles

Keep the caller and their business roles:

Add roles the caller does not hold

Suggest other users

Add the members of the caller’s desks:

What the server does with the result

The server skips null authorities, treats a null page as empty, and drops duplicates and authorities of types not requested. The provider is called on every request, possibly concurrently. All types are in com.activeviam.web.spring.api.users.