cancel
Showing results for 
Search instead for 
Did you mean: 

xMII user roles identification

Former Member
0 Kudos

hi,

i am connecting xMII portal login page from HTML page like giving username and password from HTML. but how can i know that given username is administrator or guest? how can i add new user in xMII from HTML page like filling up form and submit in HTML page? please help me.

- senthil

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Senthil,

Use can you the document.getElementById('applet').getPropertyValue('IllumLoginRoles') javascript call the following way on your HTML page:

if(document.getElementById('appletName').getPropertyValue('IllumLoginRoles').indexOf('Administrators') > -1)

This will identify if the user belongs to the Administrator role. In order to see a list of the various xMII session properties use the following URL:

http://<serverName>/Lighthammer/PropertyAccessServlet?Mode=List

This is described in detail in the xMII Help Documentation, hope this helps.

-Sam