Skip to content

Invalid status code 'Forbidden' #2

Description

@lamnv5490

Hi sir, I have run your sample then i got stucked in 2 case:

  1. I changed clientId, username, password then I got The request body must contain the following parameter: 'client_secret or client_assertion.
  2. After some researched I found that I should use
    var clientCre = new ClientCredential(clientId, clientSecret);
    This case I already got token. But then got stuck again in
    using (var client = new PowerBIClient(new Uri(apiUrl), tokenCredentials)) { var groups = client.Groups.GetGroups(); }. It said Microsoft.Rest.HttpOperationException: 'Operation returned an invalid status code 'Forbidden''.

I wonder that this sample is for Native ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions