OnDemand Users Group

Support Forums => ODWEK, Java and REST APIs => Topic started by: yousuf_gani on March 05, 2015, 04:41:12 PM

Title: setUserAlias fucntion for Ondemand
Post by: yousuf_gani on March 05, 2015, 04:41:12 PM
Hi,
Require Some Details About the setUserAlias() parameter how it will work for the OD System Log report and access the SEARCH/RETRIEVAL query through the Web-Client.

As we have a requirement to have the real user (End-User) info who is quering and retriving the Ondemand docs through a thin-Clinet(ODWEK) instead of displaying in the system log the CMOD User in the USERID field(like ADMIN or something else).

Any Insight of this Please help...

Thanks
Mohd Yousuf gani..
Title: Re: setUserAlias fucntion for Ondemand
Post by: tnvpandian on March 17, 2015, 10:37:38 PM
Hi Yousuf,

If the method setUserAlias("userid") has been invoked, in the system log, the alias name will be appended to the actual cmod system id (pattern : CMOD ID - ALIAS NAME) under User id column.

We can invoke setUserAlias API more than 1 times for a single ODServer object. With that said, assume 2 different users are trying to access cmod and inside your java service/class both requests are being served by single odserver object. In this case, we can differentiate the user requests in cmod systemlog if we set the Alias.


Thanks,
TNVP..
Title: Re: setUserAlias fucntion for Ondemand
Post by: yousuf_gani on March 18, 2015, 03:48:37 PM
Thanks a lot for the response, That helps to understand the the feature of SetuserAlias