Portal Consumer Groups
Manage the consumer groups that drive portal visibility and access rules.
Portal Consumer Groups object
Attributes
object
Stringid
Stringstatus
Enumname
Stringdescription
StringNullableis_default
Booleansso_group_ids
Array of Stringscreated_at
Dateupdated_at
Date{"object": "consumer.group","status": "active"}
List portal consumer groups
Returns a paginated list of consumer groups for a portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalsearch
StringOptionalcurl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-groups" \-H "Authorization: Bearer metorial_sk_..."
Get portal consumer group
Retrieves a portal consumer group by ID.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_group_id
StringThe unique identifier for the consumer_group
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-groups/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create portal consumer group
Creates a new consumer group for the portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
Request Body
name
Stringdescription
StringOptionalsso_group_ids
Array of StringsOptionalis_default
BooleanOptionalcurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-groups" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","sso_group_ids": ["example_item"],"is_default": false}'
Update portal consumer group
Updates a consumer group for the portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_group_id
StringThe unique identifier for the consumer_group
Request Body
name
StringOptionaldescription
StringOptionalsso_group_ids
Array of StringsOptionalis_default
BooleanOptionalcurl -X PATCH "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-groups/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","sso_group_ids": ["example_item"],"is_default": false}'
Delete portal consumer group
Archives a consumer group for the portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_group_id
StringThe unique identifier for the consumer_group
curl -X DELETE "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-groups/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."