Get memberships for user

get

/learn.rest/v1/users/{userId}/memberships

Request

Path Parameters
Query Parameters
  • Specify how many items should be returned in a payload. Must be lower than server default limit size.
  • Specify starting point of the response.
    Default Value: 0
  • If set to true, payload includes total number of rows that satisfies the request. Use of parameter determines if the 'last' link is displayed for a pageable collection.
Security
Back to Top

Response

Supported Media Types

200 Response

memberships collection for user fetched.
Body ()
Root Schema : UserMembershipResponse
Type: object
The User Membership response object.
Show Source
Example:
{
    "items":[
        {
            "groupId":932,
            "group":{
                "links":[
                    {
                        "rel":"canonical",
                        "href":"https://{url}/learn.rest/v1/learnCenters/178409/groups/932"
                    }
                ]
            },
            "itemId":"bd5207ea-d3b0-433c-9e9b-cd788d764a37",
            "itemType":"learningPlan",
            "itemName":"Name of the item",
            "retainMapping":false
        },
        {
            "...":null
        }
    ],
    "limit":100,
    "count":1,
    "hasMore":false,
    "links":[
        {
            "rel":"canonical",
            "href":"https://{url}/learn.rest/v1/learnCenters/178409/groups/932/mappedItems"
        }
    ]
}
Nested Schema : UserAndMembbershipResponse
Type: object
Show Source
Nested Schema : learnCenter
Type: array
Link to the LearnCenter items.
Show Source
Nested Schema : MembershipLinkItems
Type: object
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/memberships/456"
}
Nested Schema : statusChangedByUser
Type: array
The link to the user who changed the status.
Show Source
Nested Schema : supervisorAccount
Type: object
Object comprising supervisor account links.
Show Source
Nested Schema : user
Type: array
Link to the users.
Show Source
Nested Schema : userCustomFieldValues
Type: object
Object comprising user custom fields links.
Show Source
Nested Schema : LearnCenterLinkItems
Type: object
Learn Center Link Item object. This object comprises links to the Learn Center Items.
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/learncenters/178477"
}
Nested Schema : UserLinkItems
Type: object
Link to user items.
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/users/456"
}

401 Response

Authentication refused for provided credentials or token invalid.
Headers

500 Response

Internal server error.
Back to Top