Skip to main content
10-Marble
Sep 29, 2025 5:24 AM UTC
Solved

Is there a way to give Collection permissions programmatically?

Hi All,


I'm trying to find a snippet to provide collection permissions programmatically for a specific user or user group in Thingworx 9.7.

 

Does anyone know if any code snippets available to manage permissions of collections programmatically for a user or user group in Thingworx 9.7? Any guidance would be greatly appreciated!

 

Regards,

Bhavya

Rocko
RockoAnswer
19-Tanzanite
Sep 29, 2025 6:14 AM UTC

 

result = Resources["CollectionFunctions"].GetCollectionRunTimePermissions({ collectionName: "Things" });

https://www.ptc.com/en/support/article/CS191141

 

 

2 replies

Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
Sep 29, 2025 6:14 AM UTC

 

result = Resources["CollectionFunctions"].GetCollectionRunTimePermissions({ collectionName: "Things" });

https://www.ptc.com/en/support/article/CS191141

 

 

Translate
Emeritus
Oct 3, 2025 5:33 AM UTC

Hello Bhavya_PC,

 

It looks like you have a response from a community expert. If it helped you solve your question please mark the reply as the Accepted Solution. 
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.

Thanks,
Vivek N.
Community Moderation Team.

Translate