@Consumes(value="application/json")
public interface UserApi
Modifier and Type | Method and Description |
---|---|
User |
get(String userId)
Retrieve information about a user, by user ID
|
User |
getByName(String userName)
Retrieve information about a user, by user name
NOTE: currently not working in openstack ( https://bugs.launchpad.net/keystone/+bug/956687 )
|
PagedIterable<User> |
list()
Retrieve the list of users
NOTE: this method is not in API documentation for keystone, but does work
|
PaginatedCollection<User> |
list(PaginationOptions options) |
Set<Role> |
listRolesOfUser(String userId)
Retrieves the list of global roles associated with a specific user (excludes tenant roles).
|
Set<Role> |
listRolesOfUserOnTenant(String userId,
String tenantId)
List the roles a user has been granted on a specific tenant
|
@Named(value="user:list") @GET @Path(value="/users") PagedIterable<User> list()
@Named(value="user:list") @GET @Path(value="/users") PaginatedCollection<User> list(PaginationOptions options)
@Named(value="user:get") @GET @Path(value="/users/{userId}") @Nullable User get(@PathParam(value="userId") String userId)
@Named(value="user:getByName") @GET @Path(value="/users") @Nullable User getByName(@QueryParam(value="name") String userName)
@Named(value="user:listRolesOfUser") @GET @Path(value="/users/{userId}/roles") Set<Role> listRolesOfUser(@PathParam(value="userId") String userId)
@Named(value="user:listRolesOfUserOnTenant") @GET @Path(value="/tenants/{tenantId}/users/{userId}/roles") Set<Role> listRolesOfUserOnTenant(@PathParam(value="userId") String userId, @PathParam(value="tenantId") String tenantId)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.