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

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

hi

thanks for your supports. I use version 3.6.0.5 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

Hi,

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).

 

Regards,

Andrea.

 

 

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

 

 

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

 

hi 
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 aferende@hotmail.com Web http://netsqlazman.codeplex.com

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.

thanks

sAeid mOhammad hAshem

saeid_mh83@yahoo.com

Oct 18, 2010 at 9:22 AM

Hi,

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.

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