Layer7 Access Management

Expand all | Collapse all

Active Response - getProp - retrieving multiple variables

Jump to Best Answer
  • 1.  Active Response - getProp - retrieving multiple variables

    Posted 03-24-2017 01:11 PM

    The UserContext class in smjavaapi has a getProp function which can be used to retrieve a user's attribute.  

    public java.lang.String getProp(java.lang.String propName)

    As per the documentation, it seems that it can only be used to retrieve one attribute at a time. Is there a way to retrieve multiple attributes with a single call?



  • 2.  Re: Active Response - getProp - retrieving multiple variables
    Best Answer

    Posted 03-28-2017 07:23 AM

    Hi Jaikumar,

     

    I dont find any option to retrieve multiple attributes with getProp function. It can be used only to retrieve the value of the specified user property.

    But we do have below option in DMS API which will be used to retrieve all the attributes of the current object.

    getAttributes

    public java.util.Hashtable getAttributes()
    Gets the attributes of the current object.
    Returns:
    The attributes of the DMS object that is represented in a java.util.Hashtable

     

    Please refer below document.

    SmDmsUser (CA SiteMinder(r) SDK r12.52) 

     

    hope this helps.

     

    Thanks,

    Sharan



  • 3.  Re: Active Response - getProp - retrieving multiple variables

    Posted 03-28-2017 01:55 PM

    Thank you for your response.  I will read more on this.