locked
SOAP API RRS feed

  • Question

  • Is there any API available for getting assigned role information?

    For eg: A user xyz has a browser role and other user zzz has a content manager role.

    Now, I should be able to pass the user credentials and get back the assigned roles.

    Thanks,

    Tuesday, April 25, 2006 4:17 PM

Answers

  • No, such an API does not exist.  The reason is that the "roles" that a user is assigned to depends on the item in which they are acting on.  A given user might have "Content Manager" role on one item in the catalog, but not have any role on some other item in the catalog.  In order to determine the roles in which different user groups are in for a particular item in the catalog, you should use the GetPolicies() API.

    FYI, if you are trying to determine which UI elements to display to a user based on the permissions that they have.  Rather than do this based on roles, you should use the GetPermissions() API to determine which permissions a user has on a particular item and display various UI widgets that way.

    Also, don't query the RS catalog database directly.  We don't document the schema of the catalog and it will change with subsequent releases.  You should only interact with the catalog via the published interfaces (SOAP API and direct URL access).

    Tuesday, April 25, 2006 11:52 PM

All replies

  • Is it advisable to query reportserver database to get role assignment information?

    Thanks,

     

    Tuesday, April 25, 2006 11:23 PM
  • No, such an API does not exist.  The reason is that the "roles" that a user is assigned to depends on the item in which they are acting on.  A given user might have "Content Manager" role on one item in the catalog, but not have any role on some other item in the catalog.  In order to determine the roles in which different user groups are in for a particular item in the catalog, you should use the GetPolicies() API.

    FYI, if you are trying to determine which UI elements to display to a user based on the permissions that they have.  Rather than do this based on roles, you should use the GetPermissions() API to determine which permissions a user has on a particular item and display various UI widgets that way.

    Also, don't query the RS catalog database directly.  We don't document the schema of the catalog and it will change with subsequent releases.  You should only interact with the catalog via the published interfaces (SOAP API and direct URL access).

    Tuesday, April 25, 2006 11:52 PM