How to Get Archived User license using License Manager - google-admin-sdk

Is there a way to read "Archived User" (AU) license using License Manager API? If so, please provide an example of the request. Thank you.

Retrieve specific user:
You can either retrieve the License for a specific user, using LicenseAssignments: get.
In this case, you'll have to make the following request to this URL:
GET https://www.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}
Where:
productId should be 101034 (productId for Archived User) (this ID is not officially documented and can only be indirectly retrieved using Reseller API, see Documentation missing section below).
skuId would be 1010340001 for Enterprise - Archived User and 1010340002 for Business - Archived User (these IDs are not officially documented and can only be indirectly retrieved using Reseller API, see Documentation missing section below).
userId would be the user's current primary email address.
List for product or for product and SKU:
If you don't want to retrieve a specific user, you can also list Licenses according to productId and skuId:
LicenseAssignments: listForProduct:
GET https://www.googleapis.com/apps/licensing/v1/product/{productId}/users?customerId={customerId}
LicenseAssignments: listForProductAndSku:
GET https://www.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/users?customerId={customerId}
Documentation missing:
Archived User productId and skuId are not currently documented in the official API reference. There is currently a feature request regarding a documentation update:
Enterprise License Manager API will not return G Suite Business/Enterprise Archived User licenses
I'd suggest you to star the issue in order to keep track of this and to help prioritizing its implementation.
Note on authorization:
Any of these methods would require getting authorized with the following scope: https://www.googleapis.com/auth/apps.licensing. I'm assuming you're not asking how to go through the OAuth process, and you just need information on what methods to use.

Related

Migrating existing Login flow using Instagram Legacy API to the new Instagram Basic graph API

Our application (kind-of got legacy) has been using IG API to authorize users (by using the uid attribute returned from IG's callback API response) and we have left email as an optional param (safe to assume that there are many users in the application database without email IDs persisted)
With new Instagram Basic Display API (advised), it's mentioned to use Facebook Login for authentication purpose. But I am facing a major problem of identifying existing users now (since the uid will be different).
Also I have a doubt on what will have happen for users having instagram account without linking their Facebook account to it?
I could not find a proper explanation or a documentation for seamless migration for my situation.
Please help with sharing the right resource or guidance to achieve the same.

Access public data of other users using Instagram/Facebook API

I would like to access other users public data to show in my website when they configure the page by their username/id.
It means I will create an app on FB/Instagram side and with the help of this app's access token I would like to fetch public data of other user.
Is this scenario valid now? Earlier it was possible but I am not sure now with changes in policies. Even the documents are not clear enough which can say it's possible or not?
Has anyone tried this out recently?
Users: Only data of users who specifically authorized your App is available, depending on the authorized permissions. It does not matter if data of user profiles is public or not, you have to get permission from each user separately.
Pages: If you want to get data of pages you don´t own, you have to go through a review process with your App to get access to "Page Public Content": https://developers.facebook.com/docs/apps/review/feature/#reference-PAGES_ACCESS
That´s for Facebook, about Instagram you can just hit the docs (as well): https://developers.facebook.com/docs/instagram-api/business-discovery
My number one recommendation, in this case, is Facebook API or Instagram API from Data365. I may be considered biased since it is the tool I work for, but it is really a reliable tool you can get public profile data by users ID or username.
Of course, you can use the official Facebook/Instagram APIs for searching all public objects (post, user, page, event, group, place, check-in). But note, the official API has a number of restrictions. Andyrandy has already described them in his answer. Compared with official APIs, we do not have such restrictions.
Besides, our APIs provide such unique features as gender and age recognition (via face photos) along with identification of post reactions that give a competitive advantage in obtained analytics. Data365 APIs also enable developers to create monitoring tasks for a one-time or auto data update. And above all, we do not break the law but only provide web scraping within the legal framework.

API to get another user's info?

I went through the Pinterest's developer center and also found a thread from 2016 which mentions that getting another Pinterest user's info (pins, follower count, etc.) is not part of the API. Is that correct? Can someone please confirm.
I also found mentions of V3 Pinterest API, but can't find official documentation for it. How can I get access to the V3 API?
I don't see anything about v3 of the API on their documentation.
But as with most APIs like Pinterest's API, you can only get the user information for the currently authenticated user, not just random users. When they log in using OAuth, they will get a prompt for permission like this image:
So, if your user allows your app to have those permissions you should be able to access the user object which includes a counts property. According to the docs, the counts property includes: "The user’s stats, including how many Pins, follows, boards they have".

Looking for threat intelligence/mitigation info from Google API

Rulerr.com is a permissions management and threat intelligence system which aggregates many sources of information into a single application for Enterprise.
I can see that we can pull activity reports on admin activities and user login info from the API, but we are looking to pull other risk profiling/threat intelligence data from GSuite API such as:
password strength per user (not the password itself)
when the password was last changed
elements in the system that have been accessed by a user, and associated data (timestamps etc)
Does anyone know if it is possible to pull this data from the admin SDK API?
password strength per user (not the password itself)
No. See Listing Password complexity Google Admin SDK.
when the password was last changed
You have to track this yourself. I guess every Users: update.
elements in the system that have been accessed by a user, and associated data (timestamps etc)
Usage details that the user has can be retrieved through the Reports API. However, there are only specific parameters that you can retrieve. AFAIK, other details that are not available (like when the last password was changed) should be monitored by the developer themselves.
If you feel like this would be really useful, I would suggest that you File a Feature Request.

Facebook API v2.0 breakdowns

As facebook upgrades to v2.0 and making most of the data confidential now, how can i get user details like username, userid (Not app-scoped ID)
Any help would be highly appreaciated.
The username and real user_id will no longer be returned by the Graph API 2.0, as either would reveal the user's real profile. The only way to determine who the user is now is to follow the new link in the data:
https://www.facebook.com/app_scoped_user_id/xxx/
This is mainly done to prevent certain developers from sharing user_ids with third-party apps and ad networks.