I am using MS graph API to get all notebooks including shared notebooks using: https://graph.microsoft.com/v1.0/me/onenote/notebooks?includesharednotebooks=true
Sorry Pooja. Currently this is a known limitation in this particular API. We are unable to retrieve the ID of the user who created or modified the shared notebook. Hence, the ID is currently set to the request user