Microsoft Azure AD Component is designed to access users and group data from Azure AD using Microsoft Graph API, as well as manage roles, and permissions.
Microsoft Azure AD uses the OAuth 2.0.
How to register an application look here.
Redirect URI for can be found here, f.e. https://{your-tenant-address}/callback/oauth2
.
Client ID
can be found at Application (client) ID
(see picture).Client Secret
follow link Client credentials
(see picture) and use Value
section.During credentials creation you would need to:
OAuth2
drop-down list Type
.Choose Auth Client
or create the new one.
For creating Auth Client you should specify following fields:Field name | Mandatory | Description |
---|---|---|
Name | true | your Auth Client’s name |
Client ID | true | your OAuth Client ID |
Client Secret | true | your OAuth Client Secret |
Authorization Endpoint | true | set: https://login.microsoftonline.com/common/oauth2/v2.0/authorize |
Token Endpoint | true | set: https://login.microsoftonline.com/common/oauth2/v2.0/token |
Scopes
as offline_access Directory.Read.All Directory.ReadWrite.All Directory.AccessAsUser.All
and add another scopes if you need it.Authenticate
button - the process would take you to Exact Online to log-in and give permissions to the platform to access your service.Verify
button for verifying your credentialsSave
button for saving your credentialsWarning: To maintain a smooth experience, we recommend reusing stored credentials where possible. Duplicating secrets across OAuth clients can result in errors and complications.
Retrieve all the created objects within a given time range.
Users
.Emit page
or Emit individually
. Defaults to: Emit individually
.There is no Input Metadata in this trigger.
For Emit All
mode: An object, with key results
that has an array as its value.
For Emit Individually
mode: Each object which fill the entire message.
createdDateTime
field to poll, Groups use renewedDateTime
instead (due to Azure AD limitations).Lookup a set of object by defined criteria list. Can be emitted in different way.
Users
.Emit all
or Emit individually
.Filter Expression
.ConsistencyLevel=eventual
header and $count=true
additional query string.If configuration field Expert Mode for Filter Expression
is enabled:
Filter Expression
(without $filter=
). For advanced users. Example: startsWith(displayName,'J') and jobTitle eq 'Software Engineer'
.If configuration field Expert Mode for Filter Expression
is disabled:
Depend on configuration field Number of search terms
. If = N
- N search term and N-1 logical operators will be generated, if = 0 - any search term will be generated.
Example for Number of search terms = 2
:
{
"sTerm_1": {
"fieldName": "id",
"condition": "eq",
"fieldValue": "1"
},
"link_1_2": "and",
"sTerm_2": {
"fieldName": "displayName",
"condition": "eq",
"fieldValue": "Cronus"
}
}
For Emit All
mode: An object, with key results
that has an array as its value, if selected Advanced query capabilities
additionally there will be key totalCountOfMatchingResults
with total number of results.
For Emit Individually
mode: Each object which fill the entire message.
Allows link or unlink two objects, for instance Add Member to Group.
Groups
.Members
.Add
.Object Type
.Object Type To link
.Operation does not return anything in the response body, so Output metadata is:
{ "result": true }
Object Type
set to Groups
and Object Type To link
set to Assign License
was not tested due to limit access to group-based licensing in Azure Active Directory.Executes custom request.
false
.GET
, POST
, PUT
, PATCH
, DELETE
.Lookup a single object by a selected field that uniquely identifies it.
Users
.unseenCount
field for the Groups
object type may result in a 500 error and field mailboxSettings
for the Users
object type in some case can return 404 Error.User Principal Name
, that can be used instead.Lookup Criteria Value
becomes optional.Allow criteria to be omitted
is selected): Value for unique search criteria in Lookup Criteria
configuration field.Object with result of lookup as value.
Create or Update object in Microsoft Azure AD.
Users
.Object Type
.Delete a single object by a selected field that uniquely identifies it. See the Delete Criteria
section in the Configuration Fields
.
Users
.User Principal Name
, that can be used instead.No object found. Execution stopped. This error is only applicable to the Retrieve Sample. In flow executions there will be no error, just an execution skip.
. This is fine. In a real flow execution there will be no error.{}
.No object found by provided ID
. This is the default option if nothing else is selected.Delete Criteria
configuration field.
See the Delete Criteria
section in the Configuration Fields
.Click here to learn more about the elastic.io iPaaS