Custom attributes

In addition to standard attributes describing SSO users, such as username, password or email, it is also possible to create and manage additional arbitrary attributes holding any kind of information required.

Custom user attributes exist either for as long as their user exists or, optionally, can be configured to expire after some time. They will persist across multiple login sessions but a related feature, session attributes, lets one set attributes for each session, each login, separately.

Name of an attribute is its identifier, there is no separate ID field. The name is unique independently for user and session attributes, i.e. there can be a user attribute of a given name and a distinct session attribute of the same name but there cannot be multiple user, nor session, attributes with the same name.

Each attribute can be optionally stored in the database in an encrypted form - this can be used, for instance, with Social Security Numbers or other Personally Identifiable information (PII). Encryption and decryption is performed on the fly, no programming is needed.

Regular users may access only their own attributes while super-users can manage attributes of any user.

The API is available for Python code and REST clients.

User attributes API

User attributes

x Topicx RESTx Python
create/create_manyPOST /zato/sso/user/attrself.sso.user.attr.create*
update/update_manyPATCH /zato/sso/user/attrself.sso.user.attr.update*
set/set_manyPUT /zato/sso/user/attrself.sso.user.attr.set*
delete/delete_manyDELETE /zato/sso/user/attrself.sso.user.attr.delete*
get/get_manyGET /zato/sso/user/attrself.sso.user.attr.get*
exists/exists_manyGET /zato/sso/user/attr/existsself.sso.user.attr.exists*
namesGET /zato/sso/user/attr/namesself.sso.user.attr.names

Session attributes

x Topicx RESTx Python
create/create_manyPOST /zato/sso/session/attrself.sso.user.session.attr.create*
update/update_manyPATCH /zato/sso/session/attrself.sso.user.session.attr.update*
set/set_manyPUT /zato/sso/session/attrself.sso.user.session.attr.set*
delete/delete_manyDELETE /zato/sso/session/attrself.sso.user.session.attr.delete*
get/get_manyGET /zato/sso/session/attrself.sso.user.session.attr.get*
exists/exists_manyGET /zato/sso/session/attr/existsself.sso.user.session.attr.exists*
namesGET /zato/sso/session/attr/namesself.sso.user.session.attr.names