Wild Characters in MS Graph API when fetching all the users info - microsoft-graph-api

I'm trying to pull all the users' info from Microsoft Graph, when I do GET https://graph.microsoft.com/beta/users/, it doesn't pull manager, directReports, etc. For that, I'm making additional API calls to
/beta/users/xxxx#xxx.com/directReports and
/users/xxxx#xxx.com/authentication/methods
Is there a way to use wildcard characters in the above, so that it fetches the directReports information for all the users? I don't want to make call for each user and method, as our Org is very big.

You can use the relationships to get these details.
For getting all users directReports you can use the below graph call.
https://graph.microsoft.com/v1.0/users?$expand=directReports
See this document.

Related

Retrieve all user details from Microsoft Graph API

I am trying to retrieve all users from AD using Microsoft Graph APIs.
https://graph.microsoft.com/v1.0/users
But this is returning only some top n rows from the whole users list.
I guess its using some pagination there. But didn't find how to specify page number or those details as a parameter within the query.
https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
Ms Graph cant show all users in the same page as it may cause threshold issues if the user count is too high.
you need to use paging to achieve this i.e., to get all the users you can achieve it with the help of #odata.nextLink please refer Ms Document for more details.

Is there any way to get the list of joined teams details of members?

Is there any way to get the list of joined teams details of members except graph API? Using graph API of below link we can get the list of joined teams details of any members. Similarly, is there any other way to get the list of joined MS teams group details? I want to use these details in Microsoft bot framework.
https://learn.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-1.0&tabs=csharp
Due to some security concern I can not use graph API as of now.
I am also exploring below link but I am not getting anything here... Looking for any REST API like graph API where I can provide the users name and I can get details.
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=dotnet
It's not a security concern, rather it's part of the requirement. If i am in your place, i would set Graph API as prerequisite for my app to work, explain the benefits that you're going to get with Graph/application permissions. Apart from Microsoft Graph API you can try with Powershell, CLI.

List all Airtable tables via API request

Given that user provided his API key, is there a way to retrieve a list of tables in user's AirTable account?
I do know there is a URL for API queries, with base and table encoded there. Also API docs include only info on how to work with a particular table.
My use case is to allow user to choose a table they want to work with.
Airtable now offers a Metadata Api, however access is limited and must be individually requested, at this time.
As part of our ongoing effort to make Airtable more and more extensible, we’re beginning to expand access to the Metadata API 360.
The metadata API gives you read-only access to a list of a user’s bases, as well as the specific schema of each base - things like what tables exist, what fields exist on those tables, etc.
https://community.airtable.com/t/accessing-the-metadata-api/37080
Metadata Api Documentation
Enterprise API also offers endpoints capable of fetching Metadata.
This would be part of the metadata API which does not exist.
See this community post for some non-api workarounds.

How to get Organisation Directory list from Microsoft Graph

Is there a way we can get Directory of all users? me/people gives relevant users which is not a complete list of users. We need to access complete list of users for searching.
The /users endpoint seems to be what you're looking for. Documentation is at https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list
For example, a call to GET https://graph.microsoft.com/v1.0/users should return a paged list of all users in the tenant.
I also recommend you take a look at the Graph explorer that has samples for querying this endpoint. You can view these by clicking the show more samples link.

API to get Orders and Upload Shipment information?

I have tried to find the answer using Google, but I'm a bit confused as there are a number of eBay APIs.
In order to get orders, the Trading API GetOrders command should be used?
I would like to be able to upload via an API a completed order shipment information, tracking, and courier name. Is the CompleteSale command in the the Trading API the correct command to use?
How to get the Authentication codes from an eBay store (my app can connect to many eBay stores)
I'm planning to use this Rails GEM: https://github.com/ReverseRetail/ebay_client
1) Yes, use GetOrders to retrieve orders from eBay (Dont use getsellertransactions it is super buggy). Here is the doc for GetOrders Best Practices. You may also want to take a look at this article Order management using Trading API - GetOrders (I would set the set "Create / Mod TimeTo" time to 5 minutes instead of their recommended 2 minutes.)
2) Yes, you would use CompleteSale, you are going to need three bits of information the OrderID, ShipmentTrackingNumber, and ShippingCarrierUsed. You might also want to note that you cannot use the same tracking number for multiple packages, the API will error thinking you are trying to game the system.
3) If you want perform the trading api requests on a store that you do not have access to, you will need to allow clients to authenticate their store with your app. Documentation on that process is very detailed and can be viewed here: Getting Tokens

Resources