-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to list Sites.Selected
collection available for application
#2090
Comments
Sites.Selected
collection available for clientSites.Selected
collection available for application
The same empty site result list for SDK v.6.16.0 and UsernamePasswordCredential provider |
@denysobukh @SashaUsov to double-check, is the Graph client you're instantiating to call I notice that the application that creates the permission needs Then you'd need to initialise a new client with the |
@SashaUsov just noticed that |
@Ndiritu I have no problem with permissions, it works for SDK version 5.80.0.
since search = "*" is not valid for the new Graph version I am trying to get sites without a search query, but get empty result. But it works for Graph version 5.80.0, same client_id and user, and call:
|
Thanks for clarifying. Using an empty search parameter works for me @SashaUsov graphClient.sites().get(
requestConfiguration -> {
requestConfiguration.queryParameters.search = ""
}
); Does this help? |
@Ndiritu empty search for me cause error: a search query like "all" returns for me only 3 sites when Java SDK 5.80.0 returns 99 sites to which my user has access. |
@SashaUsov graphClient.sites().withUrl("https://graph.microsoft.com/v1.0/sites?select=id,name&search=").get() Would you also mind upgrading to the latest SDK version & sharing the failing code sample. It's not clear what properties you're selecting from your previous 6.x sample. |
@Ndiritu withUrl() works for me, thank you! Tell me please, will this bug be fixed in the next SDK releases? |
Describe the bug
When an app has
Sites.Read.All
api permission, it can list all available sites.But when it has
Sites.Selected
only and was granted permissions to selected sitesvia
POST /v1.0/sites/{siteId}/permissions
There is no way to list these site available to the application:
client.sites().get().getValue();
results 0
results: Access denied
results: Access denied
Expected behavior
Some api call which returns available via
Sites.Selected
How to reproduce
Sites.Selected
permissions to applicationPOST /v1.0/sites/{siteId}/permissions
observe empty result collection
SDK Version
6.10.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: