cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

get workspaces of user from Info*Engine webservice

SRINIVASAN1
7-Bedrock

get workspaces of user from Info*Engine webservice

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.

1 REPLY 1

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>
Announcements

Top Tags