Attribute mapping

This feature is designed to make data from your systems available for you to use within our systems. You are responsible for complying with all local policies and laws that may apply.

When you connect a local authentication system to OpenAthens, you have the ability to map attributes from one system to the other. For example, the mail attribute from LDAP could be mapped to an emailAddress attribute in OpenAthens. This mapping can achieve several things:

  1. When you list accounts, you will be able to see or search your users by any mapped attribute

  2. Attributes that your local source passes to OpenAthens can in turn be released to service providers

  3. These attributes can be used in the reporting interface

You can map as many or as few attributes as you need to accomplish your goals.

If the values of the attributes in your local system are not what you quite need, there is also an option to transform attributes.

Prerequisites

  • If you will be using these attributes for reporting or releasing data to publishers, or you need them to match existing OpenAthens accounts, you must create them in your OpenAthens attribute schema first

  • You need to know the names of the attributes available from your local connection and what they are for. (Ask your IT team if required.) Attribute and claim names are case sensitive

Add an attribute mapping rule

  1. Log in to the Compass admin area (https://admin.openathens.net) as an administrator.

  2. Go to Management > Connections.

    Main Connections page. In the left sidebar, under the subheading 'Local authentication', are a 'Create' button and a list of existing local connections.
  3. Under Local authentication in the left sidebar, select your local connection to edit it.

  4. Go to the Attributes tab.

  5. From the Add rule drop-down, select Add a mapping rule.

    Attributes tab of a connection called 'ADFS connection'. The main area of the tab displays the message 'You don't have any mapped attributes for this local authentication system.' A drop-down menu called 'Add rule' is open to show two options, 'Add a mapping rule' (which is highlighted) and 'Add a transform rule'. At the top right of the page is a 'Save changes' button.

    A blank rule template appears.

    Attributes tab of the 'ADFS connection'. It shows three text fields, called 'Target name', 'ADFS claim' and 'Display name', together with an option called 'Releasable' that can be toggled on or off. At the bottom are 'Done' and 'Cancel' buttons.
  6. In the Target name field, enter the name of the attribute to which to map. Any attribute that you want to release to service providers or include in reports must exist in your account schema before you make it the target of a mapping rule. These existing attributes appear as suggestions as you type.
    You cannot use some words as target names because they already have a defined meaning in the system.

  7. In the next field, enter the name of the local attribute or claim.
    In this example, the field is called ADFS claim. Depending on the type of connection, it might have a different label, e.g. SAML attribute name or OIDC attribute name.

  8. In Display name, enter the name by which to call the attribute in the OpenAthens Compass interface. This can be the same as, or different from, the other names.

  9. If your rule matches an attribute that is releasable, the Releasable option will be ticked automatically. You cannot change this setting.

  10. Press Done when finished.

    Completed rule, followed by 'Done' and 'Cancel' buttons. The 'Target name' field is set to 'emailAddress', the 'ADFS claim' field to 'email' and the 'Display name' field to 'Email'. The non-editable setting 'Releasable' is ticked.
  11. If necessary, repeat to create additional rules.

  12. Press Save changes to put the new rules live.

Edit an attribute mapping rule

  1. Go to Management > Connections.

    Main Connections page. In the left sidebar, under the subheading 'Local authentication', are a 'Create' button and a list of existing local connections.
  2. Under Local authentication in the left sidebar, select your local connection to edit it.

  3. Go to the Attributes tab.

    Attributes tab of a connection called 'ADFS connection'. It shows one mapping rule, called 'Email'. At the top right of the page is a 'Save changes' button.
  4. Hover over the rule you want to edit. Edit and Remove buttons appear.

    Listing for the 'Email' mapping rule. Beside it are now 'Edit' and 'Remove' buttons.
  5. Press Edit. You then see the details of the rule.

    Details of the 'Email' rule, followed by 'Done' and 'Cancel' buttons. The 'Target name' field is set to 'emailAddress', the 'ADFS claim' field to 'email' and the 'Display name' field to 'Email'. The non-editable setting 'Releasable' is ticked.
  6. Change the editable details as required. Be aware that if you change the Target name, data that has already been mapped into OpenAthens will be lost.

  7. Press Done.

  8. Repeat for other rules you want to edit.

  9. Press Save changes to put your changes live.

Delete an attribute mapping rule

  1. Go to Management > Connections.

    Main Connections page. In the left sidebar, under the subheading 'Local authentication', are a 'Create' button and a list of existing local connections.
  2. Under Local authentication in the left sidebar, select your local connection to edit it.

  3. Go to the Attributes tab.

    Attributes tab of a connection called 'ADFS connection'. It shows one mapping rule, called 'Email'. At the top right of the page is a 'Save changes' button.
  4. Hover over the rule you want to edit. Edit and Remove buttons appear.

    Listing for the 'Email' mapping rule. Beside it are now 'Edit' and 'Remove' buttons.
  5. Press Remove. You are asked to confirm this action before the rule is deleted.

    Pop-up dialog titled 'Delete attribute mapping'. A message reads, 'Please confirm you wish to delete attribute mapping 'emailAddress'.' There are 'Delete' and 'Cancel' buttons.
  6. Press Delete.

  7. Press Save changes to put your changes live.

Anything to watch out for?

  • You can have only one rule of any type per target attribute

  • Any changes you save will go live almost immediately, but do not affect users until the next time they sign in to OpenAthens. A user with an active browsing session will continue to use the old settings until their session ends. (This is most relevant when you are testing your changes)

  • When you add a mapping to an existing schema attribute that is releasable, then the data in the local connection attributes you map becomes releasable too. This is usually both deliberate and desirable but may not always be so. You should be aware of and understand your release policies before adding a mapping to any releasable OpenAthens attribute

  • When you remove a mapping, the data will no longer available to the system. This has implications if anything is using the data, especially if it is being used for access to a resource

  • Mapped data is truncated to fit when it is too large. Be aware of this if mapping to an attribute that has a character limit, such as username

  • Only fields considered to be attributes - e.g. only the data in the attribute statement sent by SAML or the API connectors - can be mapped as attributes. This is most likely to affect you if you use the API connector. See Implementing the API connector in your code

  • OpenAthens automatically applies a scope to some attributes upon release. These attributes include:

    • eduPersonPrincipalName (urn:oid:1.3.6.1.4.1.5923.1.1.1.6)

    • role/scopedAffiliation/eduPersonScopedAffiliation (urn:oid:1.3.6.1.4.1.5923.1.1.1.9)

    • Targeted ID (optional; you can choose to release a scoped or non-scoped version in your release policy)

      Values that already have a scope can have the scope incorrectly doubled, e.g. value@organisation.org@organisation.org. To avoid this, always map a non-scoped value (a value that does not contain @[domain]), such as sAMAccountName, NetID or Principal Name