Overview
User Groups enable detailed access control to specific records in applications, functioning similarly to permission sets for step-level restrictions. The Risk Cloud API allows dynamic configuration of User Groups on records. Obtain your API Access Token or pull the Risk Cloud Postman Collection (see the Postman guide) to get started.Update Record User Group endpoint
Use cases
Get record ID
Therecord-id can be sourced from three locations:
- Risk Cloud application: Open the desired record and extract the ID from the URL:
https://your-company.logicgate.com/records/{record-id}. - Email: Contextual Notifications support custom and system fields in outbound emails. Record ID is a System Field available for inclusion in Risk Cloud emails, which lets you extract the ID for use in API requests.
- Risk Cloud API: Use Record Search to obtain record IDs programmatically.
Get default User Group
When a record is created, a default User Group is automatically added to it for granting specific user access. Preserving this User Group is essential when you add or remove additional groups.id property:
Get User Group IDs
Web app environment:- Navigate to Build > Access.
- Select the Groups tab.
- Click a User Group title to open the editor.
- Locate the ID under the User Group ID label.
id property, or retrieve all User Groups:
Update record User Group
- Use the record ID in both the URL path and the request body.
- Include User Group IDs as
idproperty values in theuserGroupsarray. - Always preserve the default User Group by including its ID in every request.
- Omit a User Group’s ID to remove it from the record.
200 status confirms the User Group update. Refresh the record in the Risk Cloud web
application to see the change reflected.