I have registered an app in Azure AD portal and given Microsoft Graph API permissions to the app to read all sites.
I generate a access token using v2.0 endpoint. With the token i can access the sharepoint site collections which is fine. But using same token i am to access the onedrive also.
Is there a way to just access the sharepoint and not onedrive? Are there any permissions in Graph api or Azure ad portal to restrict this access for the token.