Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to mapper phone_number #879

Open
YokoMF opened this issue Jun 3, 2024 · 2 comments
Open

Unable to mapper phone_number #879

YokoMF opened this issue Jun 3, 2024 · 2 comments
Labels
priority: normal question Further information is requested

Comments

@YokoMF
Copy link

YokoMF commented Jun 3, 2024

I am using Keycloak as the backend for OpenID. When configuring the "Phone mapping" field in the "extra attributes mapping" section, the attribute is not being mapped correctly, and the phone number is not displayed on the user profile panel. I have confirmed that the phone number is correctly provided on the Keycloak side. Additionally, mapping the phone attribute to the nickname field is successful, as the phone number appears in the nickname section on the user profile panel.

Can someone help?

@edward-ly edward-ly added the bug Something isn't working label Sep 17, 2024
@edward-ly edward-ly added question Further information is requested priority: normal and removed bug Something isn't working labels Oct 3, 2024
@edward-ly
Copy link
Contributor

Sorry for the late response, but if you're still having trouble, please share your Keycloak configuration and user_oidc settings so that we can confirm/reproduce your issue.

@dercaptainbc
Copy link

Hello,

I am currently using the App with Nextcloud and Authentik as the Identity Provider. I am trying to pass the phone_number attribute to Nextcloud, but it is not being displayed in the "Phone Number" field in the Nextcloud user profile.

Here are the details of my setup:

In Authentik, I have created a property mapping that includes the following:

return {
    "phone_number": user.attributes.get("phone_number", None)
}

And in my User I've added the following in Attributes :

phone_number: "123456789"

When I map phone_number to another field in Nextcloud, such as "Biography", the value is displayed correctly.

Steps to Reproduce:

  1. Configure Authentik as an OpenID Connect provider.
  2. Add a property mapping in Authentik that includes the phone_number field.
  3. Log in to Nextcloud using OpenID Connect.
  4. Check the user profile in Nextcloud.

Expected Behavior: The phone_number attribute should appear in the "Phone Number" field in the Nextcloud user profile.

Actual Behavior: The phone_number value is not displayed in the "Phone Number" field. However, if mapped to another field (e.g., "Biography"), it appears correctly.

Additional Information:

  • Authentik version: 2024.10.5
  • Nextcloud version: [Nextcloud Hub 9] (30.0.4)
  • OpenID Connect app version: 6.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: normal question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants