Microsoft Graph Delta Query for User's Photo - azure-active-directory

Is there any Delta Query API available in Microsoft Graph for checking if any User has updated their Profile Photo?
I have used the below query https://graph.microsoft.com/v1.0/users/delta?$select=photo but response value returns null even after the Profile Photo is changed.

According to your description, you want to check if any user has updated their Profile Photo.
Based on my test, there are not a API that can do this. So we can submit an new Feature request on the user voice.

Related

Track user acquisition on exit - Google Analytics

Is it possible to get a current users acquisition channel ( Facebook, Glassdoor, etc... ) and append it to a string during an onSubmit?
We have a careers page on our site with a search form that when filled out and submitted takes the user to a 3rd party software we use for our job listings. What we would like to do is track the users that submitted that form so we can see what channel lead to them looking for a job.
Ex:
User visits our Facebook page and clicks link to our site. Once on our site they fill out the job search form and is sent to our jobs listing site. We use JS to create the onSumbit url and fill it with the fields they answered and would like add another "acquisition" parameter to it with said acquisition.
You can store the referrer in a cookie if this is different from the domain of your website. In this way you can know where the user came from and use that value in the string you send to submit.

Is this possible to create a private report filtering in Data Studio embeded report

I created a report in DataStudio and embedded it on my website. I activated the option "anyone with the link can view" so this report will be visible to my website users.
But I need to show my website users different data depending on their user ids and more important I don't want users would be able to see other users' data so if I used URL filtering users would be able to breach and search another user id to see his data.
Does anyone have a solution for this scenario?
In Google documentation I saw an option to limit the report to users in my domain, I assume this will solve this issue, but I don't find how to restrict other domains.
Users are logged onto Google
If users of your website are already logged onto Google, use the Filter by email address guide from Data Studio help center. This requires you to setup FILTER BY EMAIL and then have a field in your data can be directly used as an email filter.
Users are not logged on to Google
If you want a solution where the users don't have to be logged onto Google, you will need to:
Create a Community Connector to pass the filtered data to your users. The connector should accept a short lived token as part of the config.
Create a dashboard with your connector and pass unique short-lived tokens for each user.
You should have an endpoint that returns the current user's data based on the token provided. Alternatively, the endpoint can return only the user's identify and you can query a secondary data source with a service account filtering for the user's identity.
Your connector should call your endpoint to fetch data only for the user/for the user's identity.
This official guide demonstrates how to implement this in more details.
Disclaimer: I work in the Data Studio team and wrote the above guide.
First option is to add extra 2 fields to your data source.
User_ID
Password
For example:
Data, User_ID, Password
$10,Daniel,123
$20,Alex,456
In your dashboard, you need to create two parameters:
User_ID_Parameter
Password_Parameter
Both parameters can set the default value to null, and accepts any values.
Then create a new calculated field:
CASE
WHEN REGEXP_MATCH(User_ID,USER_ID_Parameter) AND REGEXP_MATCH(Password,Password_Parameter) THEN 1
ELSE 0
END
Then create a new filter to the chart that you want to hide:
To include the above calculated field Equal to 1
Second option is to use the Data Studio default Row Level Security
The only caveat is the users need to sign in before they can view the report.

Wordpress user registration to upload data for admins approval

I want that users be able to upload info, this info will be show on a product list but it will only be posted if the admins approve it.
The user may need to register or not, the contact info will be on the info they upload.
Do i need to storage the info on a different database? can i do this with the wordpress registration?
You can use wordpress database table user to store data, set post_status as 'pending', so that admin can check and can change its status to 'publish'
You can create custom template page, then insert user data in post table using custom query or
wp_insert_post() function.
Hope this helps.
Cheers!!!!

How to get Contact PhotoUrl in Salesforce?

In Salesforce I have created a few Contacts. And linked some of the contacts with LinkedIn profile. As soon as I link the contacts, the image display in Salesforce changes the profile image to that provided by LinkedIn. Basically I think it would work the same way if I linked it to Facebook or other social sites.
Now my requirement is to get the the PhotoUrl of the Contact. I went through this documentation Contacts Standard Object. It shows there is a field "PhotoUrl", but when I make a query in SOQL using SOAP API, like "Select Name, PhotoUrl From Contact", this query fails and the response message tells that there is no such field as "PhotoUrl".
What am I missing? Is there any way I cant get the Photo?
Thanks
SOLUTION:
THE PROBLEM WAS WITH THE API VERSION 29. I HAD TO CHANGE IT TO 30. HOWEVER IT WAS TRICKY WITH SOAP API. I HAD TO CHANGE THE AUTHENTICATION ENDPOINT VERSION TO 30.
Change the version of salesforce API. It works for me in 30.0 and not in 29.0..
If it is in a visualforce page, set your standard controller to Contact and then {!contact.PhotoUrl} will return the url.

Get user name and basic detail without using facebook graph api

I am working on a website, I have one problem ..
I have facebook users id in my database, now I want to get their names using their ids but without using graph api..
Is there any way to do so..
I assume you want to do this programaticaly... Short answer is - you can't.
If you want to do it manually you can simply navigate to this url: https://facebook.com/profile.php?id={USERS_ID}It will give you the users profile page where you can see their name IF their profile is publicly available.
Essentially you should request the users names and store them in your database when the users authenticate your application.

Resources