Hi @Rameez Ali
I see that you are using ClientID&Secret which is a system to system call instead on sign-on user context. Can you please try following Graph permissions and share the result?
Permissions "Group.Read.All"
Type "Application"
You can also replace other permissions TYPE as "Application" instead of delegated. Following article outlines different about API types:
https://learn.microsoft.com/en-us/graph/permissions-reference#group-permissions
https://learn.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0&tabs=http#permissions