Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hi,
How can we get the workspace/s of a particular user from Info*Engine WebServices ? Is there a way by querying the Info*Engine WebServices with criteria and typeReference or any other.
Thanks in advance.
Something like that :
<!--com.infoengine.soap.rpc.def
@param java.lang.String userName User Name
@return INFOENGINE_GROUP ${out}
-->
<%@page language="java" %>
<%@page language="java" access="http" %>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie" %>
<%@page language="java" extends="com.infoengine.SAK.BasicTasklet" %>
<%
String instance = wt.util.WTProperties.getLocalProperties().getProperty("wt.federation.ie.VMName");
String userName = (String) getParam("userName");
%>
<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="<%=instance%>"/>
<ie:param name="AUTHORIZATION" data="$(@SERVER[]AUTHORIZATION[0])"/>
<ie:param name="where" data="name='<%=userName%>'"/>
<ie:param name="type" data="wt.org.WTUser"/>
<ie:param name="attribute" data="obid"/>
<ie:param name="GROUP_OUT" data="user"/>
</ie:webject>
<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="<%=instance%>"/>
<ie:param name="AUTHORIZATION" data="$(@SERVER[]AUTHORIZATION[0])"/>
<ie:param name="where" data="principalReference='$(user[0]obid[0])'"/>
<ie:param name="type" data="wt.epm.workspaces.EPMWorkspace"/>
<ie:param name="attribute" data="*"/>
<ie:param name="GROUP_OUT" data="out"/>
</ie:webject>
<ie:webject name="Return-Groups" type="GRP">
<ie:param name="GROUP_IN" data="*" delim=","/>
</ie:webject>