Thanks for posting in Q&A forum.
For the statement "graph v5+", this seems to indicate for Microsoft Graph API SDK version 5 and above.
If so, we have a tutorial written with .NET SDK version 7.0.102. for listing users in a tenant using .NET Secret Manager for the client secret.
However, please note that you must have Global/Azure Admin role to create the Azure App and client secret.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--