Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: kotrick on September 28, 2011, 08:56:07 pm

Title: Identify username and group name of user logged in
Post by: kotrick on September 28, 2011, 08:56:07 pm
Hi,

i am developing addin where i want to know which user have logged in and groupname to which user belongs.based on the user i want to do some operation.

so is there any api for identifying user and group id

Thanks in advance
Title: Re: Identify username and group name of user logge
Post by: Geert Bellekens on September 28, 2011, 10:47:39 pm
Repository.GetCurrentLoginUser (boolean GetGuid = false)

Geert
Title: Re: Identify username and group name of user logge
Post by: kotrick on September 29, 2011, 07:26:53 pm
Thanks a lot,

i need to disable few addins based on username how can i do it.Am writing in c# for addins development.

Title: Re: Identify username and group name of user logge
Post by: Luis J. Lobo on September 29, 2011, 07:48:37 pm
In the "EA_GetMenuItems(EA.Repository Repository, string Location, string MenuName)", ask for the logged user with "Repository.GetCurrentLoginUser (boolean GetGuid = false)" and create the menu entry or not depending on the user returned.
Title: Re: Identify username and group name of user logge
Post by: kotrick on September 29, 2011, 08:54:27 pm
Thanks i got the expected result