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: string
Unique identifier of User whose recent activities are to be returned.
Query Parameters
-
q(optional): 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/manas1/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/manas1/recentactivity" } ], "totalResult": 13, "requests": [ { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/3243" } ], "id": "3243", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Tue Apr 05 11:56:52 IST 2016", "reqType": "Assign Roles" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/3244" } ], "id": "3244", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Tue Apr 05 11:57:33 IST 2016", "reqType": "Assign Roles" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/3245" } ], "id": "3245", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Tue Apr 05 11:58:02 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4067" } ], "id": "4067", "reqStatus": "Request Withdrawn", "requester": "5026", "reqCreatedOn": "Thu Apr 14 11:04:04 IST 2016", "reqExpireOn": "Thu Apr 14 11:24:22 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4068" } ], "id": "4068", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Thu Apr 14 11:42:52 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4071" } ], "id": "4071", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Thu Apr 14 13:31:43 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4104" } ], "id": "4104", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Fri Apr 15 14:20:10 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4106" } ], "id": "4106", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Fri Apr 15 14:22:30 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4108" } ], "id": "4108", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Fri Apr 15 14:26:00 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4109" } ], "id": "4109", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Fri Apr 15 14:29:21 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4112" } ], "id": "4112", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Fri Apr 15 14:33:02 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4116" } ], "id": "4116", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Fri Apr 15 14:39:55 IST 2016", "reqType": "Provision ApplicationInstance" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/4123" } ], "id": "4123", "reqStatus": "Obtaining Request Approval", "requester": "5026", "reqCreatedOn": "Fri Apr 15 14:46:59 IST 2016", "reqType": "Provision ApplicationInstance" } ] }