Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
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);
Solved! Go to Solution.
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
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