Sambruk / EgilSCIM

The EGIL SCIM client
GNU Affero General Public License v3.0
4 stars 7 forks source link

Functionality for transforming attributes from the data source #165

Closed joesiltberg closed 2 years ago

joesiltberg commented 2 years ago

It should be possible to perform certain transformations on attributes read from a data source.

A simple example is to remove/add a prefix or suffix to all values. For instance, if all groups have a cn that starts with "DL-" but we actually just want the string after "DL-" as a displayName.

A first approach could be to just allow regex-based transforms, similar to how the virtual groups transform their attributes.

It would however be nice if the chosen solution allows for other ways of transforming values in the future. Perhaps we want to add a way of transforming civic numbers between different formats? Maybe we want to have a function for transforming to lower/upper case?

Should we allow the same rule to be applied to multiple attributes?

Should rules be specified per data type?