<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00009vxjTaSAIOkta Classic EngineLifecycle ManagementAnswered2024-04-30T09:13:42.000Z2020-11-18T09:59:37.000Z2020-11-27T07:15:47.000Z

Change group membership upon registration

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"}}]}

 


This question is closed.
Loading
Change group membership upon registration
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply