On making Rest call to Microsoft Graph API for creating groups and team, I am getting 401 unauthorized error thru my java code. Although with the same access token I am able to create the same via postman, cross checked the scope, all looks fine. Please help.
Below is the error message received :
"errorMessage": "401 Unauthorized: [{\r\n \"error\": {\r\n
\"code\": \"InvalidAuthenticationToken\",\r\n \"message\": \"Access token validation failure.\",\r\n \"innerError\": {\r\n
\"date\": \"2020-06-12T11:49:22\",\r\n \"request-id\": \"7988bd2e-3274-49e7-8c00-aa52094eab99\"\r\n }\r\n }\r\n}]"