Is there a Yammer REST api to monitor user login and logout activities - yammer

Does any of the Yammer REST api (like messages.json or export api) provide support to retrieve users login and logout activities?

There is no API like this for Yammer. Yammer is part of a bigger product (O365) and there may be APIs or admin tools for that platform that can help with auditing.

Related

Chat bot single sign on

I have a bot running on a hosting page where users are logged in using SSO.
I want to authenticate the user in the bot automatically when the bot starts and I do not want to use anAuthCard to do it. Just want to automatically authenticate the user without prompting anything to him, just using SSO.
I found an article that refers three ways to authenticate an user in the bot:
Sharing the client's user token directly with the bot via ChannelData
Using an OAuthCard to drive a sign-in experience to any OAuth provider
A third option, called Single Sign-On (SSO), that is in development.
And, according to the article my situation is:
WebChat in an authenticated website where the user is already signed in and the website has a token to the same identity provider but to a different app that the bot needs -> in the future, this is single sign-on, but for now you 'll need to use an OAuthCard.
Is there any update about this functionality? How can I authenticate the user into the bot without using an OAuthCard or a SigninCard?
Thanks in advance
Not sure if you have tried the option of using WebChat with Azure Bot Service’s Authentication which provides built-in authentication capability to authenticate chat users with various identity providers such AAD, GitHub, Facebook, etc.
If you are looking for this built-in feature, then probably you need to build your own custom built solution using Google sign-in by passing the token ID of the authenticated users. Or for an Account linking OAuth2 solution as explained in this link: How to implement Login in Dialogflow chatbot.
Microsoft guys Are looking at the issue now. you can track the progress here.
I implemented a solution that worked for me. I have the bot running in a .net core web app
Here's what I did:
Generate an userId before initializing the BotApp
When the user clicks on the button to open the webchat, I'm opening an authenticated controller in a popup that receives the generated userId. The page is authenticated, so you will need to authenticate. I store the userId in my DB, along with access_token and some user information. The controller should be created in the same webapp where the bot is running.
After storing all the information I close the tab and start the BotApp with the generated userId
In bot code you will be able to query your DB (using userId).
To wait until the popup close, you can have a look into this here.
I hope that this helps someone.
Best regards

Amazon LEX Facebook Integration: Access User Profile and Location Data?

Does any one know if AWS LEX when integrated into Facebook Messenger can Access the Facebook Users Profile Information and or Location Information. Want to make my chat bot location aware and personalised to the individual using it.
I need to send the user id in order to personalized some options in future conversations, using lambda witn nodejs
Thanks.
I realize the amazon lex send the user id and the token from my page, so we can call the facebook api with that information

Gmail API for monitoring login activity

Hey guys I am looking for an Google or Gmail API which will monitor the user login activity of his/her gmail account. I got a app which does the same
Here is a link.
https://play.google.com/store/apps/details?id=com.logdog.websecurity&hl=en
Any help would be appreciated.
Thanks.
To monitor the login activities of all of your account's users, you may want to use the Reports API: Login Activity Report. Each report uses the basic report endpoint request with report-specific parameters such as a user's email. The maximum time period for each report is the last 180 days.
Note: The login activity report only audits explicit password and SAML-based single sign-on (SSO) logins.
To retrieve all logins for all of your domain's services, use the following GET HTTP request and include the authorization token described in the authorization documentation.

Login with Yammer credentials using API

I am trying to login website with yammer credentials using REST api. I have registered in yammer API. Now i have got developer token and Client ID from Yammer website.
Could you guys please let me know what is next step to login with yammer credentials from our application using c# in visual studio. Because i am beginner in using API.
Thanks!
You have a couple of options:
The JS SDK approach -
https://blogs.technet.microsoft.com/israelo/2014/10/21/yammer-rest-api-for-dummies/
The ADAL approach -
https://blogs.technet.microsoft.com/israelo/2016/07/05/yammer-apis-and-adal-tokens/
The first open will request users to login via a browser pop up, and the second option can utilise IWA, but there are some pre-conditions and limitations as it is still in preview. Details are in the blog.

Restrict Yammer Embed

I have been reading through the Yammer embed API doc and one thing to me is unclear. Can our users embed our Yammer group feeds into a website that will be publicly viewable?
I used the code that was provided by clicking on the Yammer Embed button from the web interface, and it appeared that it required authentication. Is it possible that a user could embed this in a website with an auth token so that it would be visible without login?
If this is possible, is there a way that I as a network admin can restrict the embed feature?
Thanks!
By the nature of Yammer being a private, corporate social network, you are NOT able to embed a feed from your network that is displayed publicly without user authentication using the Yammer Embed widget.

Resources