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

Resource collection function

SOLVED
Highlighted

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

Re: Resource collection function

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

2 REPLIES

Re: Resource collection function

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

Re: Resource collection function

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

 

Regards,

Abhishek kumar