Adding user to group
    • PDF

    Adding user to group

    • PDF

    Article summary

    You can add a user to a group.

    Requests

    • POST /users/{userId}/groups

    Request path

    ParametersRequirement statusTypeRestrictionsDescription
    userIdYStringUser Id

    Request bodies

    {
        "groupIds": [ "String", "String" ]
    }
    
    ParametersRequirement statusTypeDescriptionRestrictions
    groupIdsNArrayGroup ID list

    Responses

    Response bodies

    [
      "id": "String",
      "nrn": "String",
      "success" : "boolean",
      "message": "String"
    ]
    
    ParametersTypeDescriptionRestrictions
    [].idStringGroup ID
    [].nrnStringnrn of the added group
    [].successBooleanWhether it is a success
    [].messageStringFailure error message

    Errors

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

    HTTP status codeError codeError message
    400400Invalid request.
    4009050The user does not exist.
    4009061Group 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.