I am using the next endpoint https://graph.microsoft.com/v1.0/users to get all users in my azure tenant but it is not showing all information about the users, it doesnt show information as: creation date, last login date, password last change date and others.
How can I get the information required?
Thanks in advance.
Regards,
Arsenio
https://graph.microsoft.com/v1.0/users api only lists the basic properties. If you need to get the other properties, you need to use $select to get them.
https://graph.microsoft.com/v1.0/users?$select=createdDateTime,displayName
All the available user properties are listed here.
Unfortunately, you cannot get all this info from the one API call and some of them you cannot get at all. For example, last login info you can get from auditLogs endpoint or using select field modification from user API:
https://graph.microsoft.com/v1.0/users?$select=displayName,createdDateTime
All field that you can extract from user API you can find here.
For extracting information about some of users activities you can use directoryAudit call, but I'm not sure that you can extract last password change from it.
Related
I am using azure b2c for IAM, in that I am using build-in user flows for signup. I have few questions.
I want to gather users date of birth to understand the Legal Age Group Classification. User Attributes doesnt show the DOB in the list and if I will add it as custom attributes then it wont be validation unless I will use custom policies.
I want to gather the username from the user and want to make sure it is unique as well.
I tried to create custom attribute for DOB but it can`t be validated in build-in policy. I want resolve both the problems using build-in policy only, custom policy will be last thing I want to try.
I did refer to Microsoft docs but it was not useful.
https://learn.microsoft.com/en-us/azure/active-directory-b2c/manage-user-access#gather-date-of-birth-and-countryregion-data
I tried to reproduce the same issue in my environment and got the below results
I have the azure b2c for IAM in that I used the build-in user flow
I have added the DOB attributes in the user attributes as shown in below
Created the user flow for particular attribute
Make sure that we have to give the Return claim then only it will reflect
After running the user flow I am able to see the date of birth user
Note:
Make sure that we have to give the retain policy then only we can fetch the DOB details
I am trying to get list of users following me or followed by me on instagram. I have tried the api (https://www.instagram.com/developer/endpoints/relationships/#get_users_followed_by) for getting the information but its returning and blank data array with 200 OK status code. Doesn't find out the solution.
Basically I want to gather to create a daily graph from data.
I have created the app for this where I am the admin and also the sandbox user. Other document said in sandbox mode I can access my data information with scope like follower_list but it still return blank data array.
Anyone can help me to solve this out?
Thanks
In Sandbox mode you will see blank data, you will only see your and your sandbox user's data.
If you add one of your followers to sandbox user (and they accept it), then you will just see that user in API response for followers
From Instagram page:
Starting 10/1/2017, all permissions other than the basic permission
will be unavailable to submit for or obtain.
Instagram only approve the basic scope. Check out the new Instagram Graph API.
I'm using the Graph API to pull down information about a specific user in my organization. This works great, however one piece of information I need is the users "Security Groups" from their Active Directory account.
I use the following URL to request the Graph API information for a given Active Directory objectID.
https://graph.windows.net/[domain]/users/[objectID]?api-version=1.5
This gives me an JSON result that contains the users information such as their Department, jobTitle, userPrincipalName, etc.
How can I also request the users Security Group memberships? Is this possible?
They are available on the memberOf navigation property. So you can make a call to this:
https://graph.windows.net/[domain]/users/[objectID]/memberOf?api-version=1.5
User entity documentation
I am working on an iphone app which uses instagram API..and I would like to know the following things..Is it possible to get data from instagram without user logging?If so, what type of data would be retrieved from it?Is it possible to access data of a specified user?Or is it only possible using social networking sites like facebook,tumblr etc?
thanks
Yes, with a valid client id, you can fetch user information for a specific user id. Information available includes name, bio, website, and profile picture. You can also return multiple users' data using the search endpoint.
Take a look at the User Endpoints documented here: http://instagr.am/developer/endpoints/users/
I also suggest reading Do you need to authenticate? section here: http://instagr.am/developer/authentication/
NOTE: by providing a client id instead of a valid user token, you are counting against your own application's 5000 calls per-hour limit. If you plan on having a large user page, you would need to authenticate each user to avoid this limit.
I'm using Foursquare Push APIs in our server. It's working just fine but for one problem. I'm accessing user checkins in my php file as:
$jsonresponse = json_decode($_REQUEST["checkin"]);
and for the user I'm obtaining firstname, lastname etc as usual. But when I try to access user details (email etc.) by:
$jsonresponse->user->contact->email
it returns a blank field. I'm testing with my own 4Sq account so I know my email value is present. Am I missing something?
Thank you all in advance.
The Push API calls contain a compact user as opposed to a full user object (see: https://developer.foursquare.com/docs/responses/user). You'll need to retrieve the full user details to access the contact information (/users/self)