Thank you for reaching out to us. As I see you are getting error 401 while performing GET /v1.0/users to Graph API.
Error 401 is an Unauthorized error. Make sure that your application is presenting a valid access token to Microsoft Graph as part of the request. This error often means that the access token may be missing in the HTTP authenticate request header or that the token is invalid or has expired.
This error may occur, if you try to use a delegated access token granted to a personal Microsoft account, to access an API that only supports work or school accounts (organizational accounts).. Make sure you login using work account.
You can also check the answers already available on Microsoft Q&A for 401 errors - https://learn.microsoft.com/en-us/answers/search.html?c=&f=&includeChildren=&q=%5bmicrosoft-graph%5d+401+&redirect=search%2fsearch&sort=relevance&type=question+OR+idea+OR+kbentry+OR+answer+OR+topic+OR+user
Let me know if you have any questions.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.