View assignment target
    • PDF

    View assignment target

    • PDF

    Article summary

    Views assignment target

    Request

    • GET /assignments/{assignmentId}/targets

    Request path

    ParametersRequirement statusTypeRestrictionsDescription
    assignmentIdYStringAssignment Id

    Request parameters

    ParametersRequirement statusTypeRestrictionsDescription
    targetTypeYStringuser, grouptarget type
    pageNint- Page number
    Default value: 0
    sizeNint- Size of result list
    Default value: 20

    Response

    Response bodies (targetType: user)

    {
      "page" : "integer",
      "totalPages" : "integer",
      "totalItems" : "integer",
      "hasPrevious" : "boolean",
      "hasNext" : "boolean",
      "items" : [ {
        "userId" : "string",
        "loginId" : "string",
        "nrn" : "string",
        "userProfile" : {
          "firstName" : "string",
          "lastName" : "string",
          "email" : "string",
          "emailVerified" : "boolean",
          "empNo" : "string",
          "phoneCountryCode" : "string",
          "phoneNo" : "string",
          "phoneNoVerified" : "boolean",
          "deptName" : "string"
        },
        "accessRules" : {
          "consoleAccessAllowed" : "boolean",
          "apiAccessAllowed" : "boolean"
        },
        "status" : "string",
        "description" : "string",
        "lastLoginAt" : "string",
        "createdAt" : "string",
        "updatedAt" : "string"
      } ],
      "isFirst" : "boolean",
      "isLast" : "boolean"
    }
    
    ParametersTypeDescriptionRestrictions
    pageNumberpage (required) returned result of page
    totalPagesNumbertotalPages (required) returned result of totalPage
    totalItemsNumbertotalItems (required) returned result of totalItems
    hasPreviousBooleanhasPrevious (required) indicates whether the previous page exists based on the current page
    hasNextBooleanhasNext (required) indicates whether the next page exists based on the current page
    isFirstBooleanisFirst (required) indicates whether the current page is recognized as the first page based on all pages
    isLastBooleanisLast (required) indicates whether the current page is recognized as the last page based on all pages
    items.[].userIdStringUser ID
    items.[].loginIdStringLogin ID (email)
    items.[].nrnStringCreated user nrn
    items.[].userProfileObjectUser profile
    items.[].userProfile.firstNameStringName
    items.[].userProfile.lastNameStringLast name
    items.[].userProfile.emailStringEmail
    items.[].userProfile.emailVerifiedBooleanIndicate email verification
    items.[].userProfile.empNoStringEmployee number
    items.[].userProfile.phoneCountryCodeStringPhone number country code
    items.[].userProfile.phoneNoStringPhone number
    items.[].userProfile.phoneNoVerifiedBooleanIndicate phone number verification
    items.[].userProfile.deptNameStringDepartment name
    items.[].accessRulesObjectAccess rule
    items.[].accessRules.consoleAccessAllowedBooleanAllow or deny console access
    items.[].accessRules.apiAccessAllowedBooleanAllow or deny API access
    items.[].statusStringUser status (active, suspended, deleted)
    items.[].lastLoginAtStringLast login date and time (UTC, ex. 2023-04-25T13:11:50Z)
    items.[].createdAtStringCreated date and time (UTC, ex. 2023-04-25T13:11:50Z)
    items.[].updatedAtStringEdited date and time (UTC, ex. 2023-04-25T13:11:50Z)
    items.[].descriptionStringUser description

    Response bodies (targetType: group)

    {
      "page" : "integer",
      "totalPages" : "integer",
      "totalItems" : "integer",
      "hasPrevious" : "boolean",
      "hasNext" : "boolean",
      "items" : [ {
        "groupId":"String",
        "groupName":"String",
        "nrn":"String",
        "createdAt":"String",
        "updatedAt":"String",
        "description":"String"
        }
      ],
      "isFirst" : "boolean",
      "isLast" : "boolean"
    }
    
    ParametersTypeDescriptionRestrictions
    pageNumberpage (required) returned result of page
    totalPagesNumbertotalPages (required) returned result of totalPage
    totalItemsNumbertotalItems (required) returned result of totalItems
    hasPreviousBooleanhasPrevious (required) indicates whether the previous page exists based on the current page
    hasNextBooleanhasNext (required) indicates whether the next page exists based on the current page
    isFirstBooleanisFirst (required) indicates whether the current page is recognized as the first page based on all pages
    isLastBooleanisLast (required) indicates whether the current page is recognized as the last page based on all pages
    items.[].groupIdStringGroup ID (UUID)
    items.[].tenantIdStringTenant ID
    items.[].groupNameStringGroup name
    items.[].nrnStringGroup nrn
    items.[].descriptionStringGroup description
    items.[].createdAtStringCreated date and time (UTC, ex. 2023-04-25T13:11:50Z)
    items.[].updatedAtStringEdited date and time (UTC, ex. 2023-04-25T13:11:50Z)
    items.[].relationCreatedAtStringEdited date and time (UTC, ex. 2023-04-25T13:11:50Z)

    Errors

    Errors that specifically occur while using this action are listed below. For error response format, see ErrorResponse.
    For more information about common errors, see the NAVER Cloud Platform API.

    HTTP status codeError codeError message
    400400Invalid request
    4009080Assignment does not exist

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.