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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Resource collection function

akumar-10-11-12211
11-Garnet

Resource collection function

I am getting the following issue while running this service, 

var params = {
collectionName: "Mashups" /* STRING */,
principal: "CM_group" /* STRING */,
principalType: "Group" /* STRING */
};

// no return
Resources["CollectionFunctions"].AddCollectionVisibilityPermission(params);

 

Message :: Invalid Entity Type : Group/CM_group

 

while this is working good considering same principalType: "Group" 

 

var params = {
principal: "CM_group" /* STRING */,
allow: true /* BOOLEAN */,
resource: "*" /* STRING */,
type: "ServiceInvoke" /* STRING */,
principalType: "Group" /* STRING */,
collectionName: "Mashups" /* STRING */
};
// no return
Resources["CollectionFunctions"].AddCollectionRunTimePermission(params);

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

AddCollectionVisibilityPermission is for adding Organizational Units (or a whole organization) to have visibility permission to a collection. So you need to call out the following:

Principal: Name of the Organization or Organizational Unit

PrincipalType: Organization / .... I think .... OrganizationalUnit or maybe just Unit

 

There is a big difference between Design time/ Runtime permissions vs. Visibility permissions

View solution in original post

2 REPLIES 2

AddCollectionVisibilityPermission is for adding Organizational Units (or a whole organization) to have visibility permission to a collection. So you need to call out the following:

Principal: Name of the Organization or Organizational Unit

PrincipalType: Organization / .... I think .... OrganizationalUnit or maybe just Unit

 

There is a big difference between Design time/ Runtime permissions vs. Visibility permissions

Thanks for your quick response, it is working, putting "OrganizationalUnit" as type.

 

Regards,

Abhishek kumar

Top Tags