Attribuer un rôle (grant)
POST/onboarding/v0/roles/grants
Crée un grant (profile, role, scope, startDate, endDate?). Idempotent via Idempotency-Key. Un seul ACTIVE par tuple identique. Gouvernance MOCOSAG-432 : réservé à IAMAdmin (tout périmètre) et aux admins délégués FacilityAdmin/InsurerAdmin/PharmacyAdmin dans leur organisation — scope GLOBAL/REGION refusé aux délégués (403), cible hors périmètre → 404 anti-énumération. Step-up MFA requis : vérification MFA < 60 s, sinon 403 mfa_recent_verification_required.
Request
Responses
- 200
- 201
- 400
- 401
- 403
- 409
- 422
- 500
Rejeu idempotent
Created
Bad request
Unauthorized
Forbidden
DUPLICATE_GRANT / SOD_CONFLICT
Validation (invalid scope/fields)
Unexpected error