public class UserResource extends Object
| Constructor and Description |
|---|
UserResource(PersonService personService,
GroupService groupService) |
| Modifier and Type | Method and Description |
|---|---|
Person |
getAnonymous()
Get information about the how anonymous is represented in confluence
|
Person |
getCurrent(String expand)
Get information about the current logged in user.
|
PageResponse<Group> |
getGroups(String userKey,
String username,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Get a paginated collection of groups that the given user is a member of
|
Person |
getUser(String key,
String username,
String expand)
Get information about a user identified by either user key or username.
|
Person |
getUserGraph(boolean current,
String key,
String username,
String expand) |
public UserResource(PersonService personService, GroupService groupService)
public Person getUserGraph(boolean current, String key, String username, String expand)
public Person getUser(String key, String username, String expand)
Get information about a user identified by either user key or username.
Example request URI(s):
http://example.com/confluence/rest/api/user?username=jblogshttp://example.com/confluence/rest/api/user?key=402880824ff933a4014ff9345d7c0002key - userkey of the user to request from this resourceusername - username of the user to request from this resourceexpand - properties to expand on the userpublic Person getCurrent(String expand)
Example request URI(s):
http://example.com/confluence/rest/api/user/currentexpand - public Person getAnonymous()
Example request URI(s):
http://example.com/confluence/rest/api/user/anonymouspublic PageResponse<Group> getGroups(String userKey, String username, String expand, int start, int limit, @Context javax.ws.rs.core.UriInfo uriInfo)
Example request URI(s):
http://example.com/confluence/rest/api/user/memberof?username=jblogshttp://example.com/confluence/rest/api/user/memberof?key=402880824ff933a4014ff9345d7c0002Copyright © 2003–2022 Atlassian. All rights reserved.