How to get last login details of GCP users - authentication

I have a requirement to fetch list of users who did not login in to Google Console for the past 90 days. When researched found 2 ways of doing it
Using Reports API with Google workspace
Login audit log, but would need administrator access to achieve this.
Can anyone suggest any simpler option if available?

Related

How to find the last login date & time of the users in Google Cloud Platform (GCP) programmatically via REST API , SDK or command?

The following solution is required to check, "The last login of the user should be less than 90 days". GCP security check.
Till now in various documentation, I have found the following solution,
Check the last login of the user from google.admin portal using this API,
https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-08-01?
When checking this, the last login on the admin portal shows the last login time of user of the admin console.
Reference Document:
https://support.google.com/cloudidentity/answer/33323?hl=en#:~:text=If%20needed%2C%20you%20can%20check,ago%2C%20or%202%20months%20ago.
How to get last login details of GCP users
Suggest a way around getting the last login date & time of the user on the GCP console programmatically via API, SDK, and command.

Is there any way in Admin to know who's online and logged in at the site?

Sometimes I need to restart the system, and I would like to find out if there is any user/customers currently logged in. Is there a way to find out in Admin or CLI?
Thanks!
You can get this data from third-party webmaster tools like google analytics.
For example https://developers.google.com/analytics/devguides/reporting/realtime/v3

Requesting more permissions from LinkedIn API in 2020

I am trying to get rw_organization_admin permission from LinkedIn API but I get an unauthorized scope error. I use 3-legged Oath and I am the organization administrator of course. Does anyone know how to apply for this permission because the LinkedIn API doc in not clear. Is this permission included in Marketing Platform API?
Disclaimer: I am not 100% sure about that and I am in the same situation.
What I know: As of my knowledge - yes, to get more permissions granted, you need to apply for at least one of the LinkedIn Partner Programs like Marketing Platform API. When you get approved you should have access to more permissions. To what permissions exactly? No idea! Documentation is here missing a lot!
In my example my request got declined with the reason "you got declined" and it seems like I can not apply me again for the program - great job LinkedIn!
I submitted a ticket in the LinkedIn Developer Support board that you can find here: https://linkedin.zendesk.com/hc/en-us/
I got access to the rw_organization_admin last month. I created an app (link) and then submitted an application for access to the Marketing Developer Platform from the apps dashboard, once approved I got the rw_organization_admin permission (along with many others).

odoo allow existing user to signup using google login

I am trying to integrate a google login with my odoo website, I was successful in logging in new users but I was not able to login using existing user can anyone guide me if i had done anything wrong.
From the comments i am trying to include what i have done so far to trace down the issue.
I was able to setup login using google.
I was not able to login using google using existing user so after extensive search i found a solution like we need to send a reset password from settings for a existing user and it will work in-order to to make the google login work and I worked like charm but i don't know whether it is the perfect solution for the issue

OAuth2 Troubles with PicasaWeb API

I have spent the last couple of nights bashing my head against the wall amongst a see of conflicting out of date documentation and semi-helpful blog posts that were/are appropriate to what I am trying to do.
Essentially I want to write a wee personal app do download my images from PicasaWeb/Google+ and store them on my local hard disk.
I have managed to do the following:
Figured out the GData API for the appropriate request to get private album data (works fine in my 'google-logged-in' chrome browser)
Got the correct private data back from my GData URL with the token generated by the OAuth playground.
Managed to get an OAuth2 token back from https://www.googleapis.com/oauth2/v3/token using JWT.
However - when I try my access token I generate myself I get back a forbidden response with the message 'Not authorized to view access private'.
I am pretty stumped - my only guess is that my service account configured in google developers console doesn't actually have access to my personal google stuff like google+ photos. When I look in there I can see the OAuth playground has access. How do I give my app access - and do I need to in this scenario?
Thanks in advance,
Robert
"my only guess is that my service account configured in google developers console doesn't actually have access to my personal google stuff".
Totally correct.
I guess I see 2-3 questions per month on SO where people have made the false assumption that a Service Account is some kind of proxy to their Google Account. It isn't. It's a completely new and independent account.
The two approaches you can take are:-
Share the items to the Service Account so it has permission to access them.
Give your app direct access to your Picassa account. See How do I authorise an app (web or installed) without user intervention? (canonical ?) for the steps involved.