A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hello Georgius,
Thank you for reaching out to Microsoft Support!
According to the documentation, when you get all sites list for Sharepoint through the Graph API, the endpoint does not support delegated permissions, only Application permissions, so when you log in with an Extra ID, Access to the endpoint will be denied as an "Access denied" error because it is not supported. So, use Application permissions instead, see the documentation for details.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.