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');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const ssoGroupId = '312';
    const ssoGroup = await client.ssoGroup.update(ssoGroupId, {
    priority: 1,
    role: '34'
    });
    console.log(ssoGroup);
    }
    run();
    Returned output:
    > node example.js
    {
    "id": "312",
    "name": "Admin",
    "priority": 1,
    "role": "34",
    "users": [
    "312"
    ]
    }