KB-30905: Adding new users in Elipse E3 at runtime.

Question:

How can I add/delete new users in Elipse E3 at runtime?

 

Solution:

From version 6.5 of Elipse E3 on, you can add, delete and check the existence of users in a domain via scripts. These methods (CreateUser, RemoveUser and UserExists) are available at the  “Security” node, at “?Server” object.

Example of how to use  CreateUser method:

Set Users = Application.GetObject("[?Server].Security.Users")
Users.CreateUser "User01", 0, false, "Teste001", "User01"
msgbox "FullName: " & Application.GetObject("[?Server].Security.Users.[User01]").FullName

 

The User Administration window (UserAdministration()) of E3 Viewer can be opened by any users that have permission to Set up users/groups enabled, and not only by administrators exclusively.

In versions prior to 6.5, you must be an Administrator user, and you also must be logged in the application. Then, use the Viewer’s UserAdministration() event via scripts.

Attachments:

Users_Adm.zip

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *