Skip to content

Invalid status code 'Forbidden' #2

@lamnv5490

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 ?

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