Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi Community,
I'm trying to set RunTimePermission for project entities using below code
let params = {
allow: true /* BOOLEAN {"defaultValue":true} */,
name: "UG2" /* STRING */,
includeDependents: false /* BOOLEAN {"defaultValue":false} */,
type: "Group" /* STRING */,
projectName: "TestProject" /* PROJECTNAME */,
tags: undefined /* TAGS */
};
// no return
Resources["EntityServices"].SetEntityPermission(params);
When we execute this service it removes existing UserGroup permission from entity.
Is this a bug or I'm doing something wrong here.
TWX Version : 9.4.1
/VR
Solved! Go to Solution.
have you checked using AddResourceEntityPermission instead?
have you checked using AddResourceEntityPermission instead?
Does that solve the issue for you? I mean SetEntityPermission expects all permissions to be included in the parameters and overrides existing values. To set individual privileges, use the Add and Delete services. You could create a case for clarification though.