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(com.atlassian.sal.api.user.UserKey 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(com.atlassian.sal.api.user.UserKey key,
String username,
String expand)
Get information about a user identified by either user key or username.
|
public UserResource(PersonService personService, GroupService groupService)
public Person getUser(com.atlassian.sal.api.user.UserKey key, String username, String expand)
Get information about a user identified by either user key or username.
Example request URI(s):
http://example.com/rest/api/user?username=jblogs
http://example.com/rest/api/user?key=402880824ff933a4014ff9345d7c0002
key
- 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/rest/api/user/current
expand
- public Person getAnonymous()
Example request URI(s):
http://example.com/rest/api/user/anonymous
public PageResponse<Group> getGroups(com.atlassian.sal.api.user.UserKey userKey, String username, String expand, int start, int limit, @Context javax.ws.rs.core.UriInfo uriInfo)
Example request URI(s):
http://example.com/rest/api/user/memberof?username=jblogs
http://example.com/rest/api/user/memberof?key=402880824ff933a4014ff9345d7c0002
Copyright © 2003–2018 Atlassian. All rights reserved.