Box Developer Documentation
 
    Latest version

    Get group membership

    get
    https://api.box.com/2.0
    /group_memberships/:group_membership_id

    This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

    Retrieves a specific group membership. Only admins of this group or users with admin-level permissions will be able to use this API.

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Path Parameters

    stringin pathrequired
    434534

    The ID of the group membership.

    Query Parameters

    string arrayin queryoptional
    id,type,name

    A comma-separated list of attributes to include in the response. This can be used to request fields that are not normally returned in a standard response.

    Be aware that specifying this parameter will have the effect that none of the standard fields are returned in the response unless explicitly specified, instead only fields for the mini representation are returned, additional to the fields requested.

    Response

    application/jsonGroup membership

    Returns the group membership object.

    application/jsonClient error

    An unexpected client error.

    get
    Get group membership
    You can now try out some of our APIs live, right here in the documentation.
    Log in

    Request Example

    cURL
    curl -i -X GET "https://api.box.com/2.0/group_memberships/434534" \
         -H "authorization: Bearer <ACCESS_TOKEN>"

    Response Example

    {
      "id": "11446498",
      "type": "group_membership",
      "created_at": "2012-12-12T10:53:43-08:00",
      "group": {
        "id": "11446498",
        "type": "group",
        "group_type": "managed_group",
        "name": "Support"
      },
      "modified_at": "2012-12-12T10:53:43-08:00",
      "role": "member",
      "user": {
        "id": "11446498",
        "type": "user",
        "login": "ceo@example.com",
        "name": "Aaron Levie"
      }
    }