Get Recent Activity for User Based on User ID
get
/iam/governance/selfservice/api/v1/users/{uuid}/recentactivities
Returns recent activity for the user specified by the user ID. The response contains all the requests which are raised by and for the user.
Request
Supported Media Types
- application/json
Path Parameters
-
uuid(required): string
Unique identifier of User whose recent activities are to be returned.
Query Parameters
-
q: string
The activities can be filtered based on the following attributes; endDate, creationDate, executionDate, requestStatus, justification, Beneficiary User ID, Beneficiary User First Name and Beneficiary User Last Name
Response
Supported Media Types
- application/json
200 Response
Successful
Headers
-
ResponseTime: string
Captures the time in milliseconds taken for processing the request.
401 Response
Unauthorized
404 Response
Requested entity not found
500 Response
Internal Server Error
Examples
This example retrieves the recent activity for a given user. The information shown here is against a pseudo system and serves as a prototype.
cURL Example
curl -H "Content-Type: application/json" -X GET -u username:password https://pseudo.com/iam/governance/selfservice/api/v1/users/17/recentactivities
Example of GET Response Body
The following example shows the contents of the response body in JSON format.
{ "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17/recentactivities? offset=1&limit=10" }, { "rel": "first", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17/recenties? offset=1&limit=10" } ], "count": 2, "hasMore": false, "totalResult": 2, "requests": [ { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/11" } ], "id": "11", "reqStatus": "Request Awaiting Approval", "requester": { "name": "requesterId", "value": "17", "link": { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17" } }, "reqCreatedOn": "2019-03-14T18:33:44Z", "reqType": "Modify User Profile", "reqBeneficiaryList": [ { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17" } ], "id": "17" } ] }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/12" } ], "id": "12", "reqStatus": "Request Completed", "requester": { "name": "requesterId", "value": "17", "link": { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17" } }, "reqCreatedOn": "2019-03-14T18:35:19Z", "reqExpireOn": "2019-03-14T18:54:57Z", "reqType": "Modify User Profile", "reqBeneficiaryList": [ { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17" } ], "id": "17" } ] } ] }