Choose your language:
    Update a SSO group
    Parameters
    priority  integer  Optional

    When an user belongs to multiple groups, the role associated to the group with the highest priority will be used

    role  role.id  Optional

    Sso Group's role

    Returns
    Returns a sso_group object.

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    const ssoGroupId = '312';
    client.ssoGroup.update(ssoGroupId, {
    priority: 1,
    role: '34'
    })
    .then((ssoGroup) => {
    console.log(ssoGroup);
    })
    .catch((error) => {
    console.error(error);
    });
    Returned output:
    > node example.js
    {
    "id": "312",
    "name": "Admin",
    "priority": 1,
    "role": "34",
    "users": [
    "312"
    ]
    }