Is there any way to know which version of custom tab app user is using in teams? - microsoft-graph-api

We have a custom tab app installed in teams. Recently we've updated the manifest file where we've put the version as 2.1.0. Now my question is if there are any ways to know which version of the app the user is using(are they using the latest version or the old version.)

We have Graph API to List apps installed for user and Get installed app for user.
Use below Graph API to Get the names and other details of apps installed for the user. It includes the version as well.
GET https://graph.microsoft.com/v1.0/users/{user-id | user-principal-name}/teamwork/installedApps?$expand=teamsAppDefinition
Use below Graph API to Get the name and other details of the app installed for the user
GET https://graph.microsoft.com/v1.0/users/{user-id | user-principal-name}/teamwork/installedApps/{app-installation-id}=?$expand=teamsAppDefinition

Related

Microsoft Intune Graph API to get application installed

How to get applications installed on a particular device in intune with graph api.
When it comes to a specific Intune Graph API that can get applications installed on a particular device, you should be able to use the mobileAppInstallStatus resource type.
The following example shows how you can determine whether an application is installed on a user's device: For more info - Using the Microsoft Graph API for Intune.
Get from Azure Active Directory a list of devices registered to a user:
https://graph.microsoft.com/users/{user}/ownedDevices
Then view the list of applications for your tenant:
https://graph.microsoft.com/deviceAppManagement/mobileApps
Take the ID from the application and determine the installation state for the application (and therefore user):
https://graph.microsoft.com/deviceAppManagement/mobileApps/{id}/deviceStatuses/

Getting device list using Microsoft Graph API

I'm trying to get a list of devices associated with my Microsoft account. When somebody uses his Microsoft account for logging in into his Windows account, he can see that in https://account.microsoft.com/devices/ appears a new device, from which he has logged in. So, I'd like to get this list using API. I've tried to send GET request to https://graph.microsoft.com/v1.0/devices as the Documentation says using my access token, but an empty list is returned although in https://account.microsoft.com/devices/ there are registered devices. What's the problem?
The /devices endpoint hasn't been released so it isn't available under /v1.0. It is only available under /beta.
You can find details on how to use /devices in the Beta documentation.

Rails and Realm Mobile Database

Just looking for guidance. Is it possible to update Realm Mobile Database objects with a rails app/api and if so how? We want to build a rails web app that can update realm objects but I do not see any documentation on how to achieve this.
Any ideas?
Example: A mobile device sends an email to someone with a link that contains params. They click the link, it opens a browser to a rails webpage and in the backend, the rails app takes the params and updates the Realm object with the params.
Is it possible?
You can currently do that with the Enterprise or Pro Edition and the Node.js SDK where you could make a REST API specific to your needs. There is no general REST API (yet).
SEE UPDATE BELOW!

iOS Facebook SDK v4.1 - How to set permission as required

I'm using the iOS FBSDK in my app that allows Facebook as a means of logging in. My app will require that the user disclose their age and I would like to use Facebook's login flow to enforce this requirement. However, I'm having trouble setting anything as required (except for public profile, which is required by default). I would like to avoid having to tell the user that they can't use the app until they go into their account settings and turn it on. It's a disruptive user experience and the app truly needs certain permissions to function.
I set the login button's read permissions like this:
self.loginButton.readPermissions = #[#"public_profile", #"email", #"user_photos", #"user_birthday"];
and see this:
Is it all possible to do this? When I look at apps tied to my own Facebook account, I see some (Tinder, Glassdoor, and more) that have required permissions so I assume there must be a way to do it.
It is not possible to mark specific permissions as required when using the Facebook OAuth dialog.
The difference in behavior you are seeing is most likely due to when you installed the apps, and what version of Graph API those apps were using. Graph API 1.0 did not provide the ability for people to revoke specific read permissions, and (I am guessing) when you installed those apps, they were targeting 1.0. With apps that are targeting Graph API 2.0 and higher, people have the ability to revoke specific permissions (except for public_profile), and apps need to be prepared to handle missing permissions.
The settings dialog you see reflects the version of Graph API that was used to install that particular app. Any Facebook App IDs created after April 2014 automatically target the current version (2.x) of Graph API in effect at the time they were created, and pre-existing apps were migrated to 2.x earlier this year. So, going forward, people will always be able to decline permissions other than public_profile when installing an app, but for apps already installed, their settings reflect the version that was in effect when they installed the app.

Can't make "Identity" sample app work with my own client_id

I'm trying to understand how to wrap up the process of developing a package app that has access to users google drive data.
I started examining the "gdocs" sample but soon reverted to the "identity" because I just can't manage to make authorization mechanism work with my own client_id.
I'm currently using chrome canary and I can load the unpacked extension to chrome and make it work. (both identity and gdocs samples)
I am trying to change the client_id in the manifest to my own client_id but I just can't figure out how to make it work. I always get a "bad client id" response.
I could authorize web apps using "gapi.client.setApiKey(apiKey)" but not these packaged apps sample using "chrome.identity.getAuthToken"
I tried all possible combinations but the correct one it seems.
What is the correct way to authorize a packaged app while in development stage?
Do I need to upload it to Chrome Developer Dashboard first?
Can someone help?
Thanks.
Following the updated documentation for Identity API you will need to upload your application to the Developer Dashboard, in order to obtain the application key, and then copy it to manifest.json. That is how you ensure your extension ID is fixed.
Next in Google API Console you will select Installed application and Chrome application, specifying your extension ID (that is your application ID). That will generate a proper client ID that will be matching your application.
Please follow the first link for details.

Resources