Forum Discussion

Healthec's avatar
Healthec
Frequent Visitor
6 years ago
Solved

The request failed with HTTP status 401: Unauthorized ReportingService2010.GetPolicies

Dear Support Team,   I am facing one Unauthorized issue when i am going to add specific user to Power bi report server dynamically. I have used below code to get policies and assign the specific r...
  • Healthec's avatar
    6 years ago

    Hi All,

     

    I have found the solution for above issue asked.

     

    When report server and application was in same domain then in that case DefaultCredentials was working perfectly.

     

    Once we call the reporting service from other domain then found this issue and got the solution like for credentials we have to set the userid , password and domain to get the policies.

     

    Thank you, Everyone.