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
Path Parameters
  • Unique identifier of User whose recent activities are to be returned.
Query Parameters
  • 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
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : RecentActivityData
Type: object
Show Source
Nested Schema : requests
Type: array
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source
Nested Schema : UserBulkRequest
Type: object
Show Source
Nested Schema : Requester
Type: object
Show Source

401 Response

Unauthorized

404 Response

Requested entity not found

500 Response

Internal Server Error
Back to Top

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"
                }
            ]
        }
    ]
}
Back to Top