Skip to main content
Known Participant
October 20, 2022
Answered

captivateprime user api

  • October 20, 2022
  • 2 replies
  • 613 views

How to add manager for a user through user create api

    This topic has been closed for replies.
    Correct answer Anupam22771585mlvn

    To add a manager while creating a user you will need to mention the manager ID on the manager value
    on the below payload if you are using the endpoint POST /users as an admin

    {
      "data": {
        "id": "string",
        "type": "string",
        "attributes": {
          "avatarUrl": "string",
          "binUserId": "string",
          "bio": "string",
          "contentLocale": "string",
          "email": "string",
          "enrollOnClick": true,
          "fields": {},
          "gamificationEnabled": true,
          "lastLoginDate": "string",
          "metadata": {},
          "name": "string",
          "pointsEarned": 0,
          "pointsRedeemed": 0,
          "profile": "string",
          "roles": [
            "string"
          ],
          "state": "string",
          "timeZoneCode": "string",
          "type": "string",
          "uiLocale": "string",
          "userType": "string",
          "userUniqueId": "string"
        },
        "relationships": {
          "account": {
            "data": {
              "type": "string",
              "id": "string"
            }
          },
          "manager": {
            "data": {
              "type": "string",
              "id": "string"
            }
          }
        }
      }
    }

    Refer to the Adobe Learning Manager's API page for more details. 
    https://learningmanager.adobe.com/docs/primeapi/v2/

    2 replies

    Anupam22771585mlvnCorrect answer
    Participant
    October 20, 2022

    To add a manager while creating a user you will need to mention the manager ID on the manager value
    on the below payload if you are using the endpoint POST /users as an admin

    {
      "data": {
        "id": "string",
        "type": "string",
        "attributes": {
          "avatarUrl": "string",
          "binUserId": "string",
          "bio": "string",
          "contentLocale": "string",
          "email": "string",
          "enrollOnClick": true,
          "fields": {},
          "gamificationEnabled": true,
          "lastLoginDate": "string",
          "metadata": {},
          "name": "string",
          "pointsEarned": 0,
          "pointsRedeemed": 0,
          "profile": "string",
          "roles": [
            "string"
          ],
          "state": "string",
          "timeZoneCode": "string",
          "type": "string",
          "uiLocale": "string",
          "userType": "string",
          "userUniqueId": "string"
        },
        "relationships": {
          "account": {
            "data": {
              "type": "string",
              "id": "string"
            }
          },
          "manager": {
            "data": {
              "type": "string",
              "id": "string"
            }
          }
        }
      }
    }

    Refer to the Adobe Learning Manager's API page for more details. 
    https://learningmanager.adobe.com/docs/primeapi/v2/

    Known Participant
    October 21, 2022

    Thank you

    Lilybiri
    Legend
    October 20, 2022

    I will move your question to the appropriate forum 'Adobe Learning Manager'. That is since a while the new name for Captivate Prime. This forum is for Adobe Captivate which is the authoring tool, not the LMS.