Get User Role

Jun 29, 2010 at 9:42 AM

Hi,

How can i get the user role.

I have Roles Defined, but what i want is get the ROLE of logged USER.

I have check the manual, and samples, but nothing there.

 

Note:
i'm using this version  2.4.3.0. 

Best Regards.

 

Coordinator
Jun 30, 2010 at 6:31 AM

Hi,

You have two way:

1) Perform a CheckAccess for each Role and get the only on has Allow or AllowWithDelegation permission

2) Create an Instance of StorageCache class and invoke GetAuthorizedItems() method

Regards,

Andrea.

__________________________________
Andrea Ferendeles
NetSqlAzMan Project Coordinator
E-mail aferende@hotmail.com Web http://netsqlazman.codeplex.com

Jun 30, 2010 at 9:11 AM

Hi,

How can i get that class? i only have AccessVerification Class.

I can't find the StorageCache class to invoke that method.

Could you be more Specify about that? if

Coordinator
Jun 30, 2010 at 1:50 PM

Sorry but I had not carefully read your message (version 2.4.3.0).

With the 2.4.3.0 you can create an instance of the NetSqlAzMan.Cache.UserPermissionCache class and then invoke the CheckAccess method for each role, all roles with Authorization equals to Allow or AllowWithDelegation must be taken in consideration.

In version 2.4.3.0 StorageCache the class had not yet been created.

Regards,

Andrea.

__________________________________
Andrea Ferendeles
NetSqlAzMan Project Coordinator
E-mail aferende@hotmail.com Web http://netsqlazman.codeplex.com