https://graph.microsoft.com/v1.0/me/people/?$Search="contact1"
Result is empty if contact1 is under a user created folder - Folder1.
How can we search for COntacts from all Folders using a Single API call?
According to the questions and the comments you posted, I suppose you want to get the email-address of the people under a Contact Folder and get all contacts under the contacts folder.
For your case 1, according to the description of the content Use the People API in Microsoft Graph to get information about the people most relevant to you, we can get the people most relevant to the signed-in user (/me), or to a specific user in the signed-in user’s organization, instead of the people under a Contact Folder.
For your case 2, we use the API for getting the contacts, It will only return contacts under the default folder. Single contact file directories can only be obtained through this API. We can refer to the simple code in this content to get contacts in the contact folder.
Related
I've searched a lot and apparently with the Microsoft Graph API we can get the organization contacts/users list and the default contacts list of a user across Office 365 as well, but I am afraid I won't be able to get the specific Teams list of contacts of a user
Can someone please confirm this to me and perhaps give me suggestions of some other alternative?
How to fetch contact groups, also called contact lists in Outlook web (not contact folders) using Microsoft Graph API?
List contacts and list contact folders doesn't fetch contact groups.
Created a uservoice for this feature: link.
Do support if you think there's no feature currently avaliable to do this!
I'm trying to get the email for what a shareable link works for (the info pointed in this image):
I was able to retrieve the permissions list for the drive item with the List Permissions Endpoint
but it doesn't have that information.
The grantedToIdentities property is what I was looking for. It's only available on beta at the moment.
To get External user information if we share the file with specific people through link.
You can use following end point for fetching external users in your AD:
https://graph.microsoft.com/beta/users?$filter=userType eq 'Guest'
make sure that you have to select beta version of microsoft graph for additional user properties.
If you just want to get the external user list, you can use "/users?$filter=userType eq 'Guest'" resolve your issue.
If you want to get the access log of share file through link:
No matter you use OneDrive or OneDrive for business, we cannot use Graph API to get the user who have access the share file through link.
If you share the Team site's document, we can use JSOM to get the user profile first and store it to the access log. Then use the get user api to get the external user info.
If you share the document from OneDrive/OneDrive for business, we cannot assign our custom access log and no known Graph API for this too. You can submit an feature request in the UserVoice, meanwhile, you can try to see the audit logging first.
I am trying to use the Graph API inside an Office 365 add-in to get contact information out of GAL. Neither of the following queries return any contacts from the GAL, although both return some information.
beta/me/contacts?$filter=displayName eq 'John Smith'
beta/me/people?$filter=displayName eq 'John Smith'
Is it possible to get contacts from the GAL using the Graph API? I having a feeling I am not giving my app the correct permission to access the GAL.
The /me/contacts endpoint returns the contacts from your default Outlook Contacts folder. The /me/people endpoint is similar but attempts to pull information on contacts access multiple sources.
The GAL represents contact information from your organization (i.e. Active Directory). To see the contact information for other users in your organization, you use the /users endpoint. To see organizational contacts (contacts added to the AD/GAL) you need to use the /contacts endpoint (note the lack of /me/ in the path).