.NET: Administrator Command in Non-Administrator Extension' context

.NET: Administrator Command in Non-Administrator Extension' context

glanard
Enthusiast Enthusiast
489 Views
1 Reply
Message 1 of 2

.NET: Administrator Command in Non-Administrator Extension' context

glanard
Enthusiast
Enthusiast

Hi,

Creating a custom command that, for example, add routing and add change order, that assumes the user context has administrator rights, right?

So, is it possible to force a custom command to have administrator rights even if the final user is not administrator in the Vaut client?

Thanks,

 

0 Likes
Accepted solutions (1)
490 Views
1 Reply
Reply (1)
Message 2 of 2

sajith_subramanian
Autodesk Support
Autodesk Support
Accepted solution

Hi @glanard,

 

You cannot force your custom command into having admin rights. One way to probably achieve is by impersonation, i.e. logging in as admin user to perform the task and then logging out.

Please take a look at the below article which describes this in detail:

https://justonesandzeros.typepad.com/blog/2010/08/user-impersonation.html

 

Regards,

Sajith


Sajith Subramanian
Autodesk Developer Network
0 Likes