Declarative User Profile

onyxia:
api:
userProfile:
enabled: true
default:
profileSchema: |
{
"type": "object",
"properties": {
"generalInfo": {
"type": "object",
"description": "General profile information",
"properties": {
"firstName": {
"type": "string",
"title": "First name",
"description": "Your first name",
"x-onyxia": {
"overwriteDefaultWith": "{{user.decodedIdToken.given_name}}"
}
},
"familyName": {
"type": "string",
"title": "Family name",
"description": "Your family name",
"x-onyxia": {
"overwriteDefaultWith": "{{user.decodedIdToken.family_name}}"
}
},
"email": {
"type": "string",
"title": "Email",
"description": "Your email address",
"x-onyxia": {
"overwriteDefaultWith": "{{user.decodedIdToken.email}}"
}
}
}
},
"git": {
"type": "object",
"description": "Git configuration",
"properties": {
"username": {
"type": "string",
"title": "Git username",
"description": "Your username for Git operations (e.g. git commit, git push)",
"x-onyxia": {
"overwriteDefaultWith": "{{git.name}}"
}
},
"email": {
"type": "string",
"title": "Git email",
"description": "Your email for Git operations",
"x-onyxia": {
"overwriteDefaultWith": "{{git.email}}"
}
}
}
}
}
}
roles:
# NOTE: You can define role-specific schemas if needed.
#- roleName: datascientist
# profileSchema: |
# ...Why Use a Custom User Profile?
Recap
Last updated
Was this helpful?