In order to fully integrate the auth module with our external IdP, we'd love to be able to map additional attributes to user fields.

E.g. when the user entity has text fields like 'Given Name', 'Last Name', 'Display Name', which are provided as user attributes by the IdP, it would be great having them synchronized at login as well.

At the time being this works for the username and user groups only.

Comments

Mario Steinitz created an issue. See original summary.

dmundra’s picture

There appears to be a hook: http://cgit.drupalcode.org/simplesamlphp_auth/tree/simplesamlphp_auth.ap... called "hook_simplesamlphp_auth_user_attributes" that you can call in a custom module to do the mapping.

dmundra’s picture

I created this sandbox module https://www.drupal.org/sandbox/dmundra/2934777 that does attribute mapping.

dakku’s picture

Thanks dmundra. Maybe a good idea to point a link from the docs page to your sandbox example?

dmundra’s picture

@dakku, I would be fine with that. Should I go ahead and make a page?

dakku’s picture

Hi @ dmundra.
How about we add a child page here?
https://www.drupal.org/node/2402399

dmundra’s picture

@dakku, done: https://www.drupal.org/node/2935428. Does it work for you?

dakku’s picture

Component: Code » Documentation
Status: Active » Fixed

@dmundra
Thank you. That documentation page is great.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.