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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Entity Visibility Permission - Organization Unit

Sathishkumar_C
17-Peridot

Entity Visibility Permission - Organization Unit

Hi.

I have created an Organization say "Org" with two units "Unit A". and "Unit 2".

And i have created one thing called "Thing 1".

I gave visibility permissions as "Unit A" can able to see "Thing 1". Now i am editing an Organization unit "Unit A" to "Unit B". I am getting a message like "Please be careful! Changing the name of an Organizational Unit may have unintended consequences if it is already being used in visibility permissions on other ThingWorx entities."  Is there any possibility to edit the Organization unit name without affecting the Visibility permissions of entity?

3 REPLIES 3

It will not allow you to change the actual unit if you try to rename it from the Rename button .For example if you try to rename Unit1 to Unit3 then it will create a Unit3 separately instead of doing anything to Unit1 .You can see this change after saving and closing the organization and reopening it after that .So basically unit/organization visibility relation once maintained with any entity will not change by renaming the unit from organization page .Even if you try it it will not change the original unit instead it will add a new one in the structure and visibility will remain same with the entity .   

hi,

 

what service have you used to set the visibility permission?

what I mean is exactly, how you are passing the name of Organizational Unit as an input parameter?

 

Regards,

Abhishek kumar

 

var params = {
principal: undefined /* STRING */,
principalType: undefined /* STRING */
};

// no return
Things["TestingThing"].AddVisibilityPermission(params);

TestThing - Entity Name (Thing)

Principal - Organization Name or Organization Unit Name

PrincipalType - "Organization" or "OrganizationalUnit"

 

Thanks.

Top Tags