Skip to main content
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

RockoAnswer
Sep 29, 2025 6:14 AM UTC

 

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

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

 

 

2 replies

RockoAnswer
Sep 29, 2025 6:14 AM UTC

 

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

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

 

 

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.