We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quickly hacked this together. Will pull down all the most relevant contacts for the user.
func GetContacts(user model.User){ fmt.Println("Retrieving user contacts") messagesResponse := CallApiMethod("GET","/me/people",user.AccessToken,"",nil,"") ioutil.WriteFile(fmt.Sprintf("user.contacts.%s",user.UserPrincipalName), []byte(messagesResponse), 0644) }
requires the People.Read.All permission.
People.Read.All
Dont know what happens if you get a large number of users - need to work out paging results.
Probably want to hit Directory.AccessAsUser.All and https://graph.microsoft.com/v1.0/users
Directory.AccessAsUser.All
https://graph.microsoft.com/v1.0/users
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Quickly hacked this together. Will pull down all the most relevant contacts for the user.
requires the
People.Read.All
permission.Dont know what happens if you get a large number of users - need to work out paging results.
Probably want to hit
Directory.AccessAsUser.All
andhttps://graph.microsoft.com/v1.0/users
The text was updated successfully, but these errors were encountered: