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

Service "Execute As" button (for administrators)

0 Kudos

Service "Execute As" button (for administrators)

My regular user has admin permissions but I also use it for development within Thingworx. 1. this is covenient and 2. we are using Single Sign On which makes switching between users difficult.

 

While developing I often run into the situation that I either forget to set permissions or that I am not sure which permissions are necessary for other users. That also leads to the famous "But it works for me" situations.

 

I suggest to add a second button for Services next to "Execute": The "Execute As" button. It shall only be available for authorized users (administrators) and allows executing a Service with any other user to test the result, possible different pathes, permissions etc. 

 

This makes testing much easier, especially in environments using Single Sign On.

4 Comments
Constantine
16-Pearl

Hello @bbeuckSIG,

 

[Shameless plug] Check out TwxUnit (https://github.com/vilia-fr/twxunit), it allows doing this:

assertHasPermissions("Alice", function() {
    // Everything here is executed under Alice user
    Things["SystemRepository"].GetFileListingWithLinks();
}, "Alice can't get the list of files!");

 

Regards,

Constantine 

bbeuckSIG
15-Moonstone

Hello @Constantine , 

 

this indeed looks interesting. Thanks for the hint, I will check it out soon.

olivierlp
Community Manager
Status changed to: Under Consideration

Will consider for future release.

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.