Skip to content

Microsoft: Invoke function delta — users User Functions delta

Microsoft usersUserFunctions.delta: arguments, response, policy and SDK examples.

← Users user functions operations · Get started

Operation microsoft.users_delta

Provider route: GET /users/delta(). Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/microsoft with npm, or alter-sdk-microsoft with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { MicrosoftIntegration } from "@alter-ai/microsoft";
async function execute(input: Parameters<MicrosoftIntegration["usersUserFunctions"]["delta"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new MicrosoftIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.usersUserFunctions.delta(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_microsoft import MicrosoftIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = MicrosoftIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.users_user_functions.delta(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryModelOptionalExpand Invoke function delta — users User Functions delta — request body — query

Referenced models: Invoke function delta — users User Functions delta — request body — query

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$objectRoot
$ (allOf 1)ModelAll variants applyExpand Invoke function delta — me Event events Delta — response body — @odata delta Link, @odata next Link
$ (allOf 2)objectAll variants apply
$ (allOf 2).valuearrayOptional
$ (allOf 2).value[]ModelEach itemExpand Create User — response body

Referenced models: Invoke function delta — me Event events Delta — response body — @odata delta Link, @odata next Link, Create User — response body

463 more schemas are linked from the tables above, on the schema pages.

Invoke function delta — me Event events Delta — response body — @odata delta Link, @odata next Link
FieldTypePresenceDescription and constraints
$objectRoot
@odata.deltaLinkJSONOptional
@odata.deltaLink (anyOf 1)stringAlternative
@odata.deltaLink (anyOf 2)nullAlternative
@odata.nextLinkJSONOptional
@odata.nextLink (anyOf 1)stringAlternative
@odata.nextLink (anyOf 2)nullAlternative
Invoke function delta — users User Functions delta — request body — query
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
$topintegerOptionalMinimum: 0
$skipintegerOptionalMinimum: 0
$searchstringOptional
$filterstringOptional
$countbooleanOptional
$selectarrayOptionalUnique items: true
$select[]stringEach item
$orderbyarrayOptionalUnique items: true
$orderby[]stringEach item
$expandarrayOptionalUnique items: true
$expand[]stringEach item
$skiptokenstringOptional
$deltatokenstringOptional
Create User — response body — @odata type, about Me, account Enabled, activities, adhoc Calls, age Group, agreement Acceptances, app Role Assignments, assigned Licenses, assigned Plans, authentication, authorization Info, birthday, business Phones, calendar, calendar Groups, calendar View, calendars, chats, city, cloud Clipboard, cloud P Cs, company Name, consent Provided For Minor, contact Folders, contacts, country, created Date Time, created Objects, creation Type, custom Security Attributes, data Security And Governance, department, device Enrollment Limit, device Management Troubleshooting Events, direct Reports, display Name, drive, drives, employee Experience, employee Hire Date, employee Id, employee Leave Date Time, employee Org Data, employee Type, events, extensions, external User State, external User State Change Date Time, fax Number, followed Sites, given Name, hire Date, identities, identity Parent Id, im Addresses, inference Classification, insights, interests, is Management Restricted, is Resource Account, job Title, joined Teams, last Password Change Date Time, legal Age Group Classification, license Assignment States, license Details, mail, mail Folders, mail Nickname, mailbox Settings, managed App Registrations, managed Devices, manager, member Of, messages, mobile Phone, my Site, notes, oauth2 Permission Grants, office Location, on Premises Distinguished Name, on Premises Domain Name, on Premises Extension Attributes, on Premises Immutable Id, on Premises Last Sync Date Time, on Premises Provisioning Errors, on Premises Sam Account Name, on Premises Security Identifier, on Premises Sync Behavior, on Premises Sync Enabled, on Premises User Principal Name, onenote, online Meetings, other Mails, outlook, owned Devices, owned Objects, password Policies, password Profile, past Projects, people, permission Grants, photo, photos, planner, postal Code, preferred Data Location, preferred Language, preferred Name, presence, print, provisioned Plans, proxy Addresses, registered Devices, responsibilities, schools, scoped Role Member Of, security Identifier, service Provisioning Errors, settings, show In Address List, sign In Activity, sign In Sessions Valid From Date Time, skills, solutions, sponsor Of, sponsors, state, street Address, surname, teamwork, todo, transitive Member Of, usage Location, user Principal Name, user Type custom Security Attributes @odata type
FieldTypePresenceDescription and constraints
$objectRoot
@odata.typestringOptional
Create User — response body — @odata type, about Me, account Enabled, activities, adhoc Calls, age Group, agreement Acceptances, app Role Assignments, assigned Licenses, assigned Plans, authentication, authorization Info, birthday, business Phones, calendar, calendar Groups, calendar View, calendars, chats, city, cloud Clipboard, cloud P Cs, company Name, consent Provided For Minor, contact Folders, contacts, country, created Date Time, created Objects, creation Type, custom Security Attributes, data Security And Governance, department, device Enrollment Limit, device Management Troubleshooting Events, direct Reports, display Name, drive, drives, employee Experience, employee Hire Date, employee Id, employee Leave Date Time, employee Org Data, employee Type, events, extensions, external User State, external User State Change Date Time, fax Number, followed Sites, given Name, hire Date, identities, identity Parent Id, im Addresses, inference Classification, insights, interests, is Management Restricted, is Resource Account, job Title, joined Teams, last Password Change Date Time, legal Age Group Classification, license Assignment States, license Details, mail, mail Folders, mail Nickname, mailbox Settings, managed App Registrations, managed Devices, manager, member Of, messages, mobile Phone, my Site, notes, oauth2 Permission Grants, office Location, on Premises Distinguished Name, on Premises Domain Name, on Premises Extension Attributes, on Premises Immutable Id, on Premises Last Sync Date Time, on Premises Provisioning Errors, on Premises Sam Account Name, on Premises Security Identifier, on Premises Sync Behavior, on Premises Sync Enabled, on Premises User Principal Name, onenote, online Meetings, other Mails, outlook, owned Devices, owned Objects, password Policies, password Profile, past Projects, people, permission Grants, photo, photos, planner, postal Code, preferred Data Location, preferred Language, preferred Name, presence, print, provisioned Plans, proxy Addresses, registered Devices, responsibilities, schools, scoped Role Member Of, security Identifier, service Provisioning Errors, settings, show In Address List, sign In Activity, sign In Sessions Valid From Date Time, skills, solutions, sponsor Of, sponsors, state, street Address, surname, teamwork, todo, transitive Member Of, usage Location, user Principal Name, user Type agreement Acceptances item
FieldTypePresenceDescription and constraints
$JSONRoot
$ (allOf 1)ModelAll variants applyExpand Get rule — response body — @odata type, id
$ (allOf 2)objectAll variants apply
$ (allOf 2).@odata.typestringOptional
$ (allOf 2).agreementFileIdJSONOptional
$ (allOf 2).agreementFileId (anyOf 1)stringAlternativeThe identifier of the agreement file accepted by the user.
$ (allOf 2).agreementFileId (anyOf 2)nullAlternative
$ (allOf 2).agreementIdJSONOptional
$ (allOf 2).agreementId (anyOf 1)stringAlternativeThe identifier of the agreement.
$ (allOf 2).agreementId (anyOf 2)nullAlternative
$ (allOf 2).deviceDisplayNameJSONOptional
$ (allOf 2).deviceDisplayName (anyOf 1)stringAlternativeThe display name of the device used for accepting the agreement.
$ (allOf 2).deviceDisplayName (anyOf 2)nullAlternative
$ (allOf 2).deviceIdJSONOptional
$ (allOf 2).deviceId (anyOf 1)stringAlternativeThe unique identifier of the device used for accepting the agreement. Supports $filter (eq) and eq for null values.
$ (allOf 2).deviceId (anyOf 2)nullAlternative
$ (allOf 2).deviceOSTypeJSONOptional
$ (allOf 2).deviceOSType (anyOf 1)stringAlternativeThe operating system used to accept the agreement.
$ (allOf 2).deviceOSType (anyOf 2)nullAlternative
$ (allOf 2).deviceOSVersionJSONOptional
$ (allOf 2).deviceOSVersion (anyOf 1)stringAlternativeThe operating system version of the device used to accept the agreement.
$ (allOf 2).deviceOSVersion (anyOf 2)nullAlternative
$ (allOf 2).expirationDateTimeJSONOptional
$ (allOf 2).expirationDateTime (anyOf 1)stringAlternativeThe expiration date time of the acceptance. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ge, le) and eq for null values.
Format: date-time
Pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$
$ (allOf 2).expirationDateTime (anyOf 2)nullAlternative
$ (allOf 2).recordedDateTimeJSONOptional
$ (allOf 2).recordedDateTime (anyOf 1)stringAlternativeThe Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
Format: date-time
Pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$
$ (allOf 2).recordedDateTime (anyOf 2)nullAlternative
$ (allOf 2).stateJSONOptionalThe state of the agreement acceptance. The possible values are: accepted, declined. Supports $filter (eq).
$ (allOf 2).state (anyOf 1)stringAlternativeKnown values: accepted, declined, unknownFutureValue
$ (allOf 2).state (anyOf 2)JSONAlternative
$ (allOf 2).state (anyOf 2) (anyOf 1)objectAlternative
$ (allOf 2).state (anyOf 2) (anyOf 2)nullAlternative
$ (allOf 2).userDisplayNameJSONOptional
$ (allOf 2).userDisplayName (anyOf 1)stringAlternativeDisplay name of the user when the acceptance was recorded.
$ (allOf 2).userDisplayName (anyOf 2)nullAlternative
$ (allOf 2).userEmailJSONOptional
$ (allOf 2).userEmail (anyOf 1)stringAlternativeEmail of the user when the acceptance was recorded.
$ (allOf 2).userEmail (anyOf 2)nullAlternative
$ (allOf 2).userIdJSONOptional
$ (allOf 2).userId (anyOf 1)stringAlternativeThe identifier of the user who accepted the agreement. Supports $filter (eq).
$ (allOf 2).userId (anyOf 2)nullAlternative
$ (allOf 2).userPrincipalNameJSONOptional
$ (allOf 2).userPrincipalName (anyOf 1)stringAlternativeUPN of the user when the acceptance was recorded.
$ (allOf 2).userPrincipalName (anyOf 2)nullAlternative

Referenced models: Get rule — response body — @odata type, id

Create open extension — response body
FieldTypePresenceDescription and constraints
$JSONRoot
$ (allOf 1)ModelAll variants applyExpand Get rule — response body — @odata type, id
$ (allOf 2)objectAll variants applydiscriminator: {"mapping": {}, "propertyName": "@odata.type"}
$ (allOf 2).@odata.typestringOptional

Referenced models: Get rule — response body — @odata type, id

SDK function policy ID: microsoft.users_delta. Catalog operation: users_delta. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["User.Read.All", "User.ReadWrite.All"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.