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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Assign Permissions programmatically in Java

Raccone
10-Marble

Assign Permissions programmatically in Java

Dear devs, 

 

I am having some troubles in assigning certain permissions via code, just like I do in the composer.

 

For example, from the Composer I am able to assign permissions right to the Collections, but I struggle to understand how to achieve the same with the Extensions SDK.

 

Thanks for the help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Raccone
10-Marble
(To:Raccone)

I have solved this, you can use:

 

CollectionsServices cs = new CollectionsServices();
		
try {
   cs.AddCollectionVisibilityPermission("Things", org.getName(), "Organization");
} catch (Exception e) {
   e.printStackTrace();
}

View solution in original post

1 REPLY 1
Raccone
10-Marble
(To:Raccone)

I have solved this, you can use:

 

CollectionsServices cs = new CollectionsServices();
		
try {
   cs.AddCollectionVisibilityPermission("Things", org.getName(), "Organization");
} catch (Exception e) {
   e.printStackTrace();
}
Top Tags