Aller au contenu principal

Roles

P17 - Role grants & permissions (scoped)

📄️Attribuer un rôle (grant)

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`.