I could get the Dataset from below code:
var client = new PowerBIClient(new Uri(_ApiUrl), _tokenCredentials);
var datasets = await client.Datasets.GetDatasetsAsync(new Guid(_workspaceId));
However, there is error when I run below code (datasets.Value.Count > 0):
await client.Datasets.UpdateRefreshScheduleAsync(new Guid(_workspaceId), datasets.Value[datasets.Value.Count - 1].Id, refreshSchedule);
Exception Error:
"Operation returned an invalid status code 'Forbidden'"


Dataset.ReadWrite.All).Dataset.ReadWrite.Allis granted already and Backend is using this PowerBI to access PowerBI resources. Please advise, thanks.