Set permissions programmatically #223
Answered
by
filipagh
davidbrochart
asked this question in
Q&A
-
I am trying to set user's permissions programmatically using the admin API, through the POST /users/{id}/permissions, but it looks like the body containing the ID of the permission must be a UUID, while I was expecting it to be the "codename", e.g.: {
"id": "contents:read"
} Am I missing something? |
Beta Was this translation helpful? Give feedback.
Answered by
filipagh
Jun 23, 2023
Replies: 1 comment 1 reply
-
you need load permissions and use its id https://example.fief.dev/admin/api/docs#/Permissions/permissions_list_permissions__get |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
davidbrochart
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you need load permissions and use its id https://example.fief.dev/admin/api/docs#/Permissions/permissions_list_permissions__get