This topic has 2 replies, 2 voices, and was last updated 3 weeks ago by zxz.

  • Author
    Posts
  • #28539
     zxz
    Participant

    How can i create a custom attribute that linked to another attribute.For example,one user has an email attribute, and this attribute in openDJ named ‘mail’, then i create a custom attribute named ’email’, both attribute value are ‘[email protected]’, now i changed the value of the attribute ‘eamil’ to ‘[email protected]’, i hope the value of the attribute ‘mail’ changed to ‘[email protected]’ too at the same time. Can openDJ support this. Thanks for any suggestions.

    #28541
     Ludo
    Moderator

    Hi,
    I’m not sure what you are trying to achieve, but if the 2 attributes must have the same value, why do you need 2 attributes?
    If it is because you have applications that are expecting the ‘mail’ attribute and others that expects the ’email’ attribute, it’s possible to give multiple names to the same attribute. So an application querying ’email’ will get back ’email’, another one querying ‘mail’ will get ‘mail’.

    Alternately, you can achieve what you need with a custom virtual attribute plugin that would duplicate the value of the ‘mail’ standard attribute.

    #28544
     zxz
    Participant

    Hi,Ludo
    Thanks for you suggestions.You said ‘give multiple names to the same attribute’, how can i do this, is there any related doucument. And the same for ‘a custom virtual attribute plugin’.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?