Add User To Group


    # Here is a curl example
    curl \
    -X POST "http://localhost:8888/api/UsersAndGroups/AddUsersToGroup" \
    -H "Authorization: {token}" \
    -H "Content-Type: application/json" \
    -d '{
        "user_ids": [1,2,3],
        "group_id": 123,
    }'

This method allows you to add user to group.

To add user to group, you need to make a POST call to the following url: :
http://localhost:8888/api/UsersAndGroups/AddUsersToGroup



    Result example :
    [
        {
            "Success": "boolean",
            "Message": "string",
            "Data": object,
            "CustomAction": Dictionary<object, object> ,
            "CustomAttributes":Dictionary<object, object>
        }
    ]

From Body Parameters

Field Parameter Type Type Description
user_ids body List<long> List of users. You can get from another method (http://localhost:8888/api/UsersAndGroups/GetUsersAndGroups).
groupid body long Group Id
Authorization header string Add Authorization header token