Layer7 Identity Management

Expand all | Collapse all

Update Attribute of a Specific User

Jump to Best Answer
  • 1.  Update Attribute of a Specific User

    Posted 07-28-2016 07:48 AM


    Hi,

    Is it possible to update/modify the attribute of a specific user via PX. Use Case is, when a User's Manager attribute is updated, in the manager's profile the value of attribute "IsManager" Should set to "Y". I tried creating number of PX but all updated the attribute of the user whose manager attribute is update. Here is an example for better understanding.

     

    User1 ,User2 and User3 are 3 users in IDM.

    Using ModifyUser Task, User1  is set as Manager of User2 . Now the policy should set the attribute "IsManager" to "Y" for User1.

     

    We created PX to fetch the value of manager attribute for user2, but when setting action, couldn't find any option to set/add the attribute value for a specific user.

     

    Any idea how this can be achieved.

     

     

    Thank,

    Vasu



  • 2.  Re: Update Attribute of a Specific User

    Posted 07-28-2016 09:55 AM

    You are correct that PX Actions of category Attributes do no allow you to specify the user/object you want to update and will only allow you to update the subject of the task.

     

    You can look into the PX Action of category External Code to write your own code that could perform additional work. You can start by reviewing the below Techdoc to get an idea. If you need more detailed assistance with design and/or implementation of the custom code then you would best be served by CA Services and you can contact your CA Account Rep to see what fee-based services are available in that area

     

    http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1112454.aspx

     

    You can also create an Idea in the online communities about allowing the specification of which user to update via the PX Action of category Attributes.



  • 3.  Re: Update Attribute of a Specific User

    Posted 07-28-2016 10:09 AM

    We have developed custom code for this and is working but the problem is, when a User's manager is cleared, i.e. no value, in that case, the code will not get the input for which user's attribute needs to be changed. In case, manager value is cleared, the attribute "IsManager", should be cleared or set no "N" .

     

    Thanks,

    Vasu



  • 4.  Re: Update Attribute of a Specific User
    Best Answer

    Posted 07-28-2016 12:33 PM

    I am not sure what your code looks like but perhaps review the IM Javadoc and look at the getOriginalValue() method.

     

    If you need more detailed assistance with design and/or implementation of the custom code then you would best be served by CA Services and you can contact your CA Account Rep to see what fee-based services are available in that area.



  • 5.  Re: Update Attribute of a Specific User

     
    Posted 08-10-2016 11:24 AM

    Another option you could consider is to use a "SOAP Query" action in your PX. You could then create an XML structure that will preform a TEWS request on a modify user task, thus updating the manager entry (assuming your modify user task has web services enabled).