A grant cannot shorten a role already held
Code: grantshortensend
On this page
Code: grant_shortens_end
- HTTP status: 409 Conflict
- Shown to the end user: A grant cannot shorten a role already held
Request-specific detail for this error goes to the app or developer (API response, developer view, logs). The public page shows only the short message and the code.
Cause
Giving a role that the person or agent already holds directly can create it, renew one that has ended, or lengthen it, but never add an end to a role with no end or bring its end forward: a stale page or a script would otherwise cut someone's access short without anyone choosing to. Nothing in the request was written; the refused pairs are listed in refused, with the binding id and the end each has now.
Fix
Use Change end date (PATCH .../access/bindings/{id} with the new expires_at) to give the role an end or an earlier end, or grant without an end date to leave it as it is.