Graph API list of application inside a collection - azure

Hi I would like to use the graph api
https://graph.microsoft.com/v1.0/applications
To gather name, icon and link of all the application of a user.
The application are inside a collection.
How can I get via API only applications inside a collection?

Related

How to get azure ad user properties using microsoft graph api

I have saved some of the users in azure ad and now trying to get the properties of the users. For this I am using below api:
1. https://graph.microsoft.com/v1.0/users/
Documentation: https://learn.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http
The above API responds with the default properties, so if you want to get more properties, you have to specifically mention them in the request like:
2. https://graph.microsoft.com/v1.0/users/?$select=userPrincipalName,givenName,surname,businessPhones,officeLocation,companyName
Now the above api is giving me the appropriate response but it only list down the user which are on first page. If you want to get the list of all the users, then you need to mention top in your request like:
3. https://graph.microsoft.com/v1.0/users?$top=998
Above api will give you all the user list. But I am unable to understand how can I merge the 2 and 3 so that it gives me all the user list but the properties which I have mentioned. Thanks
Just try this:
GET https://graph.microsoft.com/v1.0/users/?$select=userPrincipalName,givenName,surname,businessPhones,officeLocation,companyName&$top=998
Using & to connect all query params
Result:

Create document library (inside Sharepoint site) through graph APIs?

When I am trying to create Document library using below endpoint its creating folder inside existing document library.
POST /drives/{drive-id}/root/children
I need to create Document Library at site level. e.g. at https://domain.sharepoint.com/sites/<site_name> through graph APIs
Any Inputs?
You can use following endpoint to create a list (Document library):
https://learn.microsoft.com/en-us/graph/api/list-create?view=graph-rest-1.0&tabs=http
Example:
BR

How to have google docs api (nodejs) create an empty doc in a particular google account

I have an express.js application where clients authenticate using a local strategy (passport.js). After that I want them to be able to create empty documents with titles of their wish (I create a new mongoose 'Task' document and set its doclink (Task.doclink) to be the newly created document's public link (https://docs.google.com/document/d/...document_id.../edit)).
I want this new document to be created in a particular google account that I have access to (the clients don't have direct access to it but they can create documents inside it and write to it)
Any suggestions of how I should go about authorization of google API? As per my current research, this seems impossible.
What I would recommend you to use is a service account as the docs say:
A service account is an identity that an instance or an application
can use to run API requests on your behalf.
What it means is that you will be able to have a "bot user" in your express app, which could be the interface between your users and your document.
Docs
You can check more about it in these links:
Creating and managing service accounts.
Authenticating users with Node.js.

Access sharepoint online list from mobile app

I am facing a problem where I need to show the data of sharepoint online list in a mobile app. mobile app can access the data via rest api. but how can i find the sharepoint context as app is external and sits outside boundary of sharepoint.
Any link to the solution or sample code will be highly appreciated.
You need to write REST API which will access SharePoint list data using managed Client object model(CSOM) and return data as JSON.
Following are the detailed steps:
1. Create REST API to access SharePoint list using CSOM
2. Call API from mobile app and include username and password in header in encrypted format
3. Inside API, Decrypt header and use that Username and Password to access SharePoint list.
Sample code for API:

get stream list of all users in nodeJS

i'm using the javascript getstream integration library: https://github.com/GetStream/stream-js.
I've configured a user feed on my getstream dashboard, suppose i add few users as user:test1 user:test2 user:test3. Is there any way that i can get list of all users that are registered on the user feed group.
Similarly i want this to work for news updates posted by user, where he can see list of users and can follow them.
It is currently not possible to list all the feeds created on a certain feed group via API. You are responsible to store the users of your application within your own backend.

Resources