Create group verification request
POST/groups-srv/verifications/requests
This API call creates a reusable group verification request that can be used later to verify user access via GET /groups-srv/verifications/{verificationId}?sub=.
Purpose:
- Create reusable access control rules referenced by a unique
id - Define verification criteria once and reuse across multiple verification calls
- Centralize access control logic for easier management and updates
Authentication Requirements:
- Requires
cidaas:groups_writescope - Caller must be a member of
CIDAAS_ADMINSwith roleADMIN,SECONDARY_ADMIN,GROUPFILTER_MANAGER,GROUP_MANAGER, orGROUPSETUP_MANAGER
Request Structure:
id: Required, unique identifier (alphanumeric, underscores, hyphens; stored lowercase)matchCondition: Required, determines how multiple filters are combined ("and" or "or")filters: Required array, must contain at least one filterhints: Optional, controls response fields when verifying via GET
Filter Rules:
- Each filter must specify exactly one of
groupIdorgroupType(not both, not neither) roleFilteris optional and can be used with eithergroupIdorgroupType
Validation Rules:
id: Required, must match pattern^[a-zA-Z0-9_-]+$matchCondition: Required, must be either "and" or "or"filters: Required, must be a non-empty array- If
groupIdis specified, the group must exist - If
groupTypeis specified, the group type must exist - If
roleFilteris provided, it must have validmatchConditionandrolesarray
Business Rules:
- Verification requests are stored and referenced by their
id - Duplicate
idreturns 409 Conflict — use PUT to update an existing request - Use GET
/groups-srv/verifications/{verificationId}?sub=to verify user access - Changes via PUT or DELETE affect all future verifications using that request ID
Request
Responses
- 201
- 400
- 401
- 409
Created - New verification request created successfully
Bad Request — invalid request body or failed validation.
| Code | error | When |
|---|---|---|
10101 | error while parsing body request data! | Request body is missing, malformed, or not valid JSON |
10101 | invalid payload | Validation failed (e.g. missing id/matchCondition/filters, invalid filter structure, unknown group/role) |
Unauthorized - Authentication failed or missing required scope
Conflict - A verification request with this id already exists