<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OrganizationServicesManager.queryPrincipals API in Windchill13 in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1024970#M10201</link>
    <description>&lt;P&gt;Thank you, I was able to use it like below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DirectoryContextProvider[] contexts = WTContainerHelper.service.getPublicContextProviders(principalSpec);

 Map&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; criteriaMap = new HashMap&amp;lt;&amp;gt;();

criteriaMap.put(WTPrincipal.NAME, new ArrayList&amp;lt;&amp;gt;(Arrays.asList(name)));

Enumeration results = OrganizationServicesHelper.manager.queryPrincipals(principalClass, criteriaMap, contexts);&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 16 Jul 2025 09:57:39 GMT</pubDate>
    <dc:creator>LT_12699133</dc:creator>
    <dc:date>2025-07-16T09:57:39Z</dc:date>
    <item>
      <title>OrganizationServicesManager.queryPrincipals API in Windchill13</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1013324#M9882</link>
      <description>&lt;P&gt;Version: Windchill 13.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: wt.org.OrganizationServicesManager.queryPrincipals(Class, String,DirectoryContextProvider) we were using the API OrganizationServicesManager.queryPrincipals(Class, String,DirectoryContextProvider) in WIndchill12. But now in Windchill 13 it is replaced by OrganizationServicesManager.queryPrincipals(Class paramClass, Map&amp;lt;String, List&amp;gt; paramMap, DirectoryContextProvider paramDirectoryContextProvider). Previously parameters what we were passing were of type Class - wt.org.WTUser, String - "uid=" + userid and DirectoryConectProvider. now in new version, it is given as passing map, but not sure what should be the key and what should be the value. Can someone help me through it?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;wt.org.OrganizationServicesManager.queryPrincipals(Class, String,DirectoryContextProvider)&lt;BR /&gt;we were using the API OrganizationServicesManager.queryPrincipals(Class, String,DirectoryContextProvider) in WIndchill12. But now in Windchill 13 it is replaced by OrganizationServicesManager.queryPrincipals(Class paramClass, Map&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; paramMap, DirectoryContextProvider paramDirectoryContextProvider).&lt;/P&gt;&lt;P&gt;Previously parameters what we were passing were of type Class - wt.org.WTUser, String - "uid=" + userid and DirectoryConectProvider.&lt;BR /&gt;now in new version, it is given as passing map, but not sure what should be the key and what should be the value. Can someone help me through it?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 05:15:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1013324#M9882</guid>
      <dc:creator>LT_12699133</dc:creator>
      <dc:date>2025-04-30T05:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: OrganizationServicesManager.queryPrincipals API in Windchill13</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1013562#M9888</link>
      <description>&lt;P&gt;I found this article which you likely found too:&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS433891?source=search" target="_blank"&gt;https://www.ptc.com/en/support/article/CS433891?source=search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Agree just a terrible write up providing no real details. They basically told us to enable debug logging and find out map ourselves. Why not save us the effort? Testing on 12 which not sure is using this, it is VERY chatty. Recommend doing this off hours to do this test and turn off Debug immediately.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 12:17:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1013562#M9888</guid>
      <dc:creator>avillanueva</dc:creator>
      <dc:date>2025-05-01T12:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: OrganizationServicesManager.queryPrincipals API in Windchill13</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1013563#M9889</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/27334"&gt;@avillanueva&lt;/a&gt;&amp;nbsp;, I will try this. Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 12:20:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1013563#M9889</guid>
      <dc:creator>LT_12699133</dc:creator>
      <dc:date>2025-05-01T12:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: OrganizationServicesManager.queryPrincipals API in Windchill13</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1013567#M9891</link>
      <description>&lt;P&gt;Ok here is my run on a WC 13 system:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;queryPrincipals(Class, String, DirectoryContextProvider) --&amp;gt; Start
2025-05-01 08:55:07,268 DEBUG [ajp-nio-127.0.0.1-8010-exec-4] wt.org.StandardOrganizationServicesManager wcadmin - queryPrincipals(Class, String, DirectoryContextProvider, Map&amp;lt;String, ArrayList&amp;lt;String&amp;gt;&amp;gt;): principalClass:wt.org.WTUser criteria:(((fullName='avillanueva'))|((authenticationName='avillanueva'))) context:wt.org.GenericDirectoryContextProvider@52421993 criteriaMap:{fullName=[avillanueva], authenticationName=[avillanueva], Operator=[|]}
2025-05-01 08:55:07,268 DEBUG [ajp-nio-127.0.0.1-8010-exec-4] wt.org.StandardOrganizationServicesManager wcadmin - !context.getUserDefinedPrincipalsSearchCriteria().isIncludeOrganizations() condition true
2025-05-01 08:55:07,268 DEBUG [ajp-nio-127.0.0.1-8010-exec-4] wt.org.StandardOrganizationServicesManager wcadmin - queryPrincipals(Class, String, DirectoryContextProvider, boolean, Map): principalClass:wt.org.WTUser criteria:(((fullName='avillanueva'))|((authenticationName='avillanueva'))) context:wt.org.GenericDirectoryContextProvider@52421993 exactClassMatch: true criteriaMap:{fullName=[avillanueva], authenticationName=[avillanueva], Operator=[|]}
2025-05-01 08:55:07,268 DEBUG [ajp-nio-127.0.0.1-8010-exec-4] wt.org.StandardOrganizationServicesManager wcadmin - queryPrincipals(Class, String, DirectoryContextProvider) services:[local.dmtllc.Ldap, Windchill] sizeLimit:50&lt;/LI-CODE&gt;
&lt;P&gt;I searched on username "avillanueva" so I think the map is this criteriaMap value it reported back:&lt;/P&gt;
&lt;PRE&gt;criteriaMap:{fullName=[avillanueva], authenticationName=[avillanueva], Operator=[|]}&lt;/PRE&gt;
&lt;P&gt;So this should be a map of three values, fullname, authenticationName and Operator. Looks like it is searching either field. While the docs do say ArrayList&amp;lt;String&amp;gt;, there is only one value for each.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 13:14:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1013567#M9891</guid>
      <dc:creator>avillanueva</dc:creator>
      <dc:date>2025-05-01T13:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: OrganizationServicesManager.queryPrincipals API in Windchill13</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1014643#M9939</link>
      <description>&lt;P&gt;Hello &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/913168"&gt;@LT_12699133&lt;/a&gt;&lt;/SPAN&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you have some responses from our community champion. If any of these replies helped you solve &lt;A href="https://community.ptc.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1013324#M9882" target="_blank"&gt;your question&lt;/A&gt; please mark the appropriate reply as the Accepted Solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vivek N.&lt;BR /&gt;Community Moderation Team.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 12:41:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1014643#M9939</guid>
      <dc:creator>vnamboodheri</dc:creator>
      <dc:date>2025-05-08T12:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: OrganizationServicesManager.queryPrincipals API in Windchill13</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1024970#M10201</link>
      <description>&lt;P&gt;Thank you, I was able to use it like below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DirectoryContextProvider[] contexts = WTContainerHelper.service.getPublicContextProviders(principalSpec);

 Map&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; criteriaMap = new HashMap&amp;lt;&amp;gt;();

criteriaMap.put(WTPrincipal.NAME, new ArrayList&amp;lt;&amp;gt;(Arrays.asList(name)));

Enumeration results = OrganizationServicesHelper.manager.queryPrincipals(principalClass, criteriaMap, contexts);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Jul 2025 09:57:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OrganizationServicesManager-queryPrincipals-API-in-Windchill13/m-p/1024970#M10201</guid>
      <dc:creator>LT_12699133</dc:creator>
      <dc:date>2025-07-16T09:57:39Z</dc:date>
    </item>
  </channel>
</rss>

