is it possible to assign a Microsoft Teams App to a user using the Graph API? - microsoft-graph-api

I can see the Graph API call to assign a Teams App to a given team, but I can't see a call to assign an App to a given user.
Is this possible using the Graph API?
If not, are there any other ways to perform this programmatically?

https://learn.microsoft.com/en-us/graph/teams-proactive-messaging#install-the-app-for-your-users
This capability is now available via the Graph API

Related

Is possible use Microsoft Graph API in a UWP app on HoloLens in order to initiate a video call through Microsoft Teams?

I would like to use Microsoft Teams to start a video call using HoloLens device with another people (using a PC).
I have and UWP app that I can install on HoloLens device, I would like to use Microsoft Teams to start a video call, to stablish a communication between HoloLens user and Pc user.
The problem is that I cannot install Microsoft Teams on HoloLens Device.
I have reviewed that exist Remote assist but I need a subscription to use it, so I wondering if using Microsoft Graph API in a HoloLens's UWP app, I will can initialize a video call through Microsoft teams. Will it be possible to do it?
I see that I can create a Call: https://learn.microsoft.com/en-us/graph/api/application-post-calls?view=graph-rest-1.0&tabs=http
but,
Do I need a bot? why?
Do I need access to Azure Active Directory?
If on HoloLens device I Cannot install Microsoft Teams, Can I stablish a video call with the user using the Microsoft graph API?
Any help is appreciated.
We can create a call using an Graph API.
When a call is created need to mention the requestedModalities where audio/video/videoBasedScreenSharing can be define for a call. please check the properties in Call resource type .
You need to create a calling bot for creating
call.
To create a bot you need access to Azure Active Directory.

MS Graph - How do I list all users from specific OU under my DC?

I'm building a Logic App to list all users from MS Graph.
I can get the list of all users by calling MS Graph API using OAuth authentication in my Logic App but I'm struggling to apply a filter in my custom request in MS Graph.
i.e. I have below structure in my OnPremiseAD:
OU=Site1,OU=Users,OU=TEST,DC=xyz,DC=com
OU=Site2,OU=Users,OU=TEST,DC=xyz,DC=com
OU=Site3,OU=Users,OU=TEST,DC=xyz,DC=com
OU=Site4,OU=Users,OU=TEST,DC=xyz,DC=com
...and I want to list users from OU=Site4 only.
Can someone please help?
https://graph.microsoft.com/beta/users?$filter...???
Based on Custom OU considerations and limitations:
User accounts, groups, service accounts, and computer objects that
you create under custom OUs aren't available in your Azure AD tenant.
These objects don't show up using the Microsoft Graph API or in the
Azure AD UI; they're only available in your managed domain.
So I'm afraid that it's not supported to list the users under an OU via Microsoft Graph API.
See a similar post here.

Is it possible to create a message in a Microsoft Teams Channel via Graph API using an Adaptive Card format (seems limited to Text and HTML)

I'm attempting to create a message in a Teams channel via the Graph API. Teams now supports adaptive cards but it seems we are still limited to either plain text or HTML when creating the message via Graph API (either v1 or beta). Anyone found a way to create this message using Adaptive Cards?
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/itembody
Via Microsoft Graph, no, not yet. But via the Bot Framework APIs, yes, and it's available today.
More info here: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/cards/cards#cards-in-bots

Microsoft.Graph API expand method doesn't work

What I am trying to do is retrieve all users with their managers data
await _client.Users.Request().Select("email, displayname, manager")
.Top(5).Expand(x => x.Manager).GetAsync()
Yet, result is always null (tried few different variations). Does Microsoft.Graph API supports this functionality? Because I've tried same requests through Microsoft.Graph and Azure AD Graph Explorers and only azure one returned manager data
Please refer to thread :
The manager property is a navigation property on a user so you'll have to request that property value for each user.
So currently Microsoft Graph SDK doesn't support retrieving all users with their managers data . You may use Azure AD Graph API as a workaround(https://graph.windows.net/<tenant>/users/?$expand=manager&api-version=2013-11-08). If you want microsoft graph api supports that feature , you can send a feedback in here .

Is there any well-defined way to programmatically create a user?

I'm researching YouTube for backing a video system of ours. We have many clients and if clients were to use the system they would likely want their own accounts. Observing the YouTube API it does not appear I can manipulate user information. Is it possible to programmatically create users for YouTube via another Google API or the Youtube API itself?
No, clients will have to create accounts manually. Programmatic account creation would be ripe for abuse.

Resources