What does the authorities endpoint return?
GET /activeviam/users/rest/v1/authorities returns a JSON array of authorities, each with a name and a type.
They are suggestions, not an allow-list.
Without a caller, it returns an empty array.
With the starter’s security filter chain, a caller holding none of the roles of
atoti.server.security.roles-user or atoti.server.security.roles-admin receives a 403.
Which authorities are returned by default?
Only the caller (when it has a user name), then each of its granted authorities as a role, sorted by name ignoring case. To return other users and roles, see How to expose users and roles.Which properties configure the users endpoint?
Their names are the constantsUSERS_ENABLED_PROPERTY and USERS_SECURITY_ENABLED_PROPERTY of com.activeviam.springboot.atoti.server.starter.api.PropertyNames.
The endpoint is experimental, so it is also gated by the JVM system property
activeviam.feature.experimental.users_rest_api.enabled, which covers the whole activeviam/users namespace. Set it to true (for example, -Dactiveviam.feature.experimental.users_rest_api.enabled=true). If atoti.server.endpoint.users.enabled is true and the system property is not, the application fails at startup with an error naming the system property.
For all properties, see Atoti Server properties.