
OctolearnF.39310 (Customer) asked a question.
Hi,
is it possible to change the group membership of an user via an inline hook?
What i tried:
I created an registration inline hook, which acesses my backend.
In the response I tried sending the following response:
{"commands":[{"type":"com.okta.user.profile.update","value":{"role":"NEW_ROLE"}}]}
which gives the error:
Failure processing inline hook response
failure : The response received from the Registration Inline Hook contained a command of type com.okta.user.profile.update that tried to update the property role, which either does not exist or cannot be modified by a Registration Inline Hook
Same story when i send
{"commands":[{"type":"com.okta.user.profile.update","value":{"groups":"NEW_ROLE"}}]}

Hi Simon,
Hope you are great!
Have you tried doing the Inline Hook with the following guide: https://developer.okta.com/docs/reference/registration-hook/