locked
AzMan - Programmatically assign roles - How ?

    Question

  • Component: AzMan (Authorization Manager)
    Environment: Windows XP
    Programming Environment: Visual Studio 2005
    Language: C#
    Assembly: Microsoft.Interop.Security.AzRoles.dll

    We have implemented AzMan based security in our project. We have set of roles defined at the application level. From our application we are dynamically creating a new scope through code programmatically.

    We have a requirement to assign an existing role which is defined at the application level to the newly created scope through code. We are not able to find the method to assign an existing role to the scope.

    By using the front end (azman.msc) we are able to assign an existing role to a scope. We need to know how to achieve this programmatically.

    Has anybody tried this before ? Any suggestions or pointers ?

    We have already tried the following MSDN links

    (1) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/authorization_functions.asp

    (2) http://msdn.microsoft.com/msdnmag/issues/03/11/AuthorizationManager/

    Thursday, June 01, 2006 11:09 AM