This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Description
"code": "InvalidAuthenticationToken", "message": "CompactToken parsing failed with error code: 80049217",
`List scopes = new ArrayList();
scopes.add("User.Read.All");
ClientCredentialProvider authProvider = new ClientCredentialProvider(app-Id,
scopes_list,
client-Secret,
tenantId, NationalCloud.Global);
IgraphClient graphClient = GraphServiceClient.builder().authenticationProvider(authProvider).logger(logger)
.buildClient();
IUserCollectionPage users = graphClient.users()
.buildRequest()
.get();
List usersList = users.getCurrentPage();
for(User user : usersList) {
System.out.println(user.displayName);
}`