how to check available "operation" for "application groups"

Oct 3, 2010 at 2:56 PM
Edited Oct 3, 2010 at 2:58 PM


thanks for your supports. I use version in .NET 3.5.

i want to check available Operations for one application group.

such as this Codes or other available methods: 

var strGroupName = NetSqlAzMan_GetGroupName(intApplicationGroupId); 

var AzManGroup = m_objMyNetSqlAzManApplication.GetApplicationGroup(strGroupName);

var _SecurityClass = new CheckAccessHelpernamespace.CheckAccessHelper(ConfigurationManager.ConnectionStrings["NetSqlAzManProvider"].ConnectionString);

bool blnPOLL_VOTE = _SecurityClass.CheckAccess( ePoll_Engine.NetSqlAzManSecurity.CheckAccessHelper.Operation.Vote_OneVote,AzManGroup.SID);

but CheckAccess function only get Netsqlazman User's SID and ApplicationGroups.SID not work

can you help me to resolve this problem?

thanks a lot.

sAeid mOhammad hAshem

Oct 4, 2010 at 6:57 AM
Edited Oct 4, 2010 at 7:10 AM


you cannot use CheckAccess on Store/Application groups.

CheckAccess can check access for Items … for DB/Windows Users only.

Items are:

- Roles
- Tasks
- Operations

If you have an Application Groups … assign it first to a Role (add an Allow Authorization on this Role for your Application Group)… and then CheckAccess to the assigned Role.


Application Groups are not roles. They are similar to Windows Groups … so only to aggregate people (users or other groups).






Andrea Ferendeles
NetSqlAzMan Project Coordinator
E-mail Web 



Oct 5, 2010 at 6:30 AM
Edited Oct 5, 2010 at 6:30 AM


thanks for your reply.
my question is "how to check available operations for one application group?".
in my application one application group maybe include one or more Role,and one Role has some tasks,and task have some operations.
therefor i want to get available operations of one application groups that in this case.
Application Group -> Roles -> Tasks -> Operations
               |                                                 ^
I knew that checkaccess() method could not solve my problem but for example i want to show this case.
thanks for your regard.
Oct 5, 2010 at 6:57 AM

I think you're doing a bit of confusion.

An application group can not contain or authorize roles !

Can you send me the XML exported store ?

Andrea Ferendeles
NetSqlAzMan Project Coordinator
E-mail Web

Oct 18, 2010 at 8:39 AM

Hi Andrea

I 'm send NetSQLAzMan project databases and XML file to you but did not have any answer or mail from you.if you have any suggestion send to me please.


sAeid mOhammad hAshem

Oct 18, 2010 at 9:22 AM


I have read now the attached Storage.

You use Application Groups with inside Database users.

So, you have to use CheckAccess method and pass it the Database user SID (Storage.GetDBUser(“username”)).

P.S.: I have received your email 3 hours ago.


Andrea Ferendeles
NetSqlAzMan Project Coordinator
E-mail Web