So we use some custom extension attributes and our B2C and we are trying to filter on some missing data.
https://graph.microsoft.com/beta/users?$count=true&$filter=CustomExtension eq 'blah'
Im using beta simply for the ease of seeing the data.
However, come to find out doing my research that the customextension does not get applied to the B2C account.
Is there a way to use the filter to look for custom extensions that are NOT on the users accounts?
I need a count of all the users that do not have this customextension.
If the custom attribute is created using the B2C users' portal then the custom attribute should looks something like "extension_<AttributeName>" and if its created using MS Graph APIs in the B2C tenant, then it custom attribute would look something like "extension_<b2c-extensions-app-guid>_<AttributeName>".
Can you please try create a filter something like:
https://graph.microsoft.com/v1.0/users/?$select=displayName,id,extension_10a6691fcea1415cb0836f5d9f423d55_TShirtSize&$filter=startswith(extension_10a6691fcea1415cb0836f5d9f423d55_TShirtSize, 'L')
This is a sample query, that I had used to list all users who has a custom attribute TShirtSize with a value of 'L'.
Related
I am querying Azure AD with Microsoft Graph API and I need to get AD-properties like "homePhone", "otherPhone" and "description" from users.
I have not seen any explicit mention in the API reference about certain properties being unobtainable, but looking at the user resource type (https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0) there seems to be alot of properties missing.
Am I correct in assuming that these properties can't obtained at the moment?
As #Jan hajek said, All Azure AD Directory object properties are not present in Windows AD objects. There is an alternative solution for this is you need to added a custom attribute on the Group schema on the local AD, and then configured it to sync as an extension property to Azure. Please go through this Directory extensions document.
I never use Microsoft graph. I just want to query to just pull a selection of users by supervisor using Microsoft graph
Run https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/directReports
See reference
Create SPFx to call graph api to get users.
the demo had shared how to search/filter users, to get all users, just remove the filter logic.
https://graph.microsoft.com/v1.0/users?$select=displayName,mail,userPrincipalName
This should work, if you want to get specific user with given email ID. Just change your email ID. The email ID I have given is just an example.
https://graph.microsoft.com/v1.0/users/xyz#mail.com?$select=displayName
I'm trying to build a dashboard that provides information (aggregates only) about contacts in our Eloqua database, but only those with a specific security label. Is there a way to gather this info using the REST APIs that ELoqua publishes? If not, is it something I can filter on in the Analytics suite?
Unfortunately, the contact security labels are very internal and are not directly available through the api or reporting. A workaround would be to create a shared list for each label, and then add the contact to that list depending on what label they have been assigned, and handle this directly on the label assignment workflow (each time they run through the label assignment workflow, remove them from all shared lists in case their label changes).
You can then access list membership through the API or bring it in as a subject area in OBIEE, filtering on the appropriate lists.
I've been able to create discount codes using discount_new, is it possible to create access codes with the API too?
I don't see a method on http://developer.eventbrite.com/doc/#methods for doing that and discount_new doesn't seem to support it.
I'd like to create customized access codes that allow people to sign up for hidden tickets, such as a volunteer ticket, for example.
You can now get, create, and update access codes using the following api endpoints:
event_list_access_codes
access_code_new
access_code_update
Documentation to follow soon, but usage is similar to that for discount codes. In order to create a new access_code, the corresponding ticket needs to be hidden. If the "tickets" parameter is not specified, the access code will apply to all tickets (and they all need to be hidden).
I have already seen the method:
GetRolesForUser
But is there a way using the membership providers that I can see the users in a role? I searched around and still didn't find a simple way to create a report list of users for a given role.
There is a GetUsersInRole method:
The GetUsersInRole method calls the GetUsersInRole method of the default role provider to retrieve the user names associated with a role from the data source.
This is not possible using the membership providers, as you have no idea where the group membership comes from. It could be from AD, from a database, from an external provider (using e.g. WIF), etc. If you want to look up users in a group, you can probably do this against AD using LDAP, but you can't use the membership providers for this. It has no way of knowing this.