can i get custom Okta profile fields in external IdP scenario?
ZITADEL Docs
Automatically pre-fill user data
3 Replies
Hi @kappapilla, I'm an AI assistant for ZITADEL. While a team member reviews this question, I'll see if I can find relevant sources for your question.
Answer
Yes, you can access custom Okta profile fields in ZITADEL's external IdP scenario using Actions (1) (2) (3) .
The documented examples show how to access standard fields like name and email from Okta . For custom fields, you can access any additional claims or attributes that Okta provides through the
ctx.v1.providerInfo
object in your Action .
Here's the example Action for Okta OIDC that shows the basic pattern:
To access custom Okta fields, you would extend this pattern by accessing additional properties from ctx.v1.providerInfo
and potentially storing them as user metadata using the metadata API methods available in Actions (1) (2) .
You can also access custom claims through ctx.getClaim('claim_name')
for generic OIDC providers (2) .
To learn more, see the sources I considered:
[1] Profile Pre-filling from External IdP
[2] Code examples
[3] Configure OKTA as an OIDC Identity Provider in ZITADEL
Feel free to tag @Ask Inkeep with additional questions.can i access custom fields in post authentication with this? also, if custom field updates does it overwrite?
Got it. Tagging @Rajat for additional help.