Actions129
- Calendar Permission Actions
- CIPP Administration Actions
- Execute API Client (GET)
- Execute Auto Backup
- Execute Extension Mapping (GET)
- Execute Extension Mapping (POST)
- Execute Extension Sync
- Execute Extensions Config
- Execute Password Config (POST)
- Execute Restore Backup
- Execute Run Backup
- List Custom Roles
- List Extension Sync
- List Logs
- List Scheduled Items
- Remove Scheduled Item
- Execute API Client (POST)
- Execute Extension Test
- Execute Password Config (GET)
- List Backups
- List Function Parameters
- Group Actions
- Intune Actions
- Add MSP App
- Add Office App
- Add Policy
- Add Store App
- Assign App
- Assign Autopilot Device
- Device Action
- Get Recovery Key
- List Applications
- List Application Queue
- List Autopilot Config
- List Devices
- List Intune Scripts
- List Intune Templates
- Remove Autopilot Device
- Remove Policy
- Remove Queued App
- Add Choco App
- Add WinGet App
- Assign Policy
- Get Local Admin Password
- List Autopilot Devices
- List Intune Policies
- Remove App
- Remove Intune Script
- Sync Autopilot Devices
- License Actions
- Security & Compliance Actions
- Teams & SharePoint Actions
- Tenant Actions
- Add Alert
- Clear Tenant Cache
- Execute CA Exclusion
- Execute Named Location
- Get Tenant
- List Alerts Queue
- List Azure AD Connect Status
- List Conditional Access Policies
- List Named Locations
- List Shared Mailbox Statistics
- List Standards
- List Tenants
- Remove Standard Template
- Add Named Location
- Edit Tenant
- Execute Standards Run
- List Audit Logs
- List CSP Licenses
- List Roles
- List Standard Templates
- Tool Actions
- User Actions
- Add User
- Exec Restore Deleted User
- List User
- List User Conditional Access Policies
- List User Groups
- Clear Immutable ID
- Create Temporary Access Password
- Delete User Device
- Dismiss Risky User
- List Deleted Items
- List Inactive Accounts
- List Sign-Ins
- Remove User
- Reset MFA
- Restore Deleted Item
- Revoke Sessions
- Set Email Forward
- Set Per-User MFA
- List All Users
- List User Counts
- List User Devices
- Convert Mailbox
- Disable User
- Enable Archive
- List MFA Users
- Offboard User
- Reset Password
- Send MFA Push
- Set Out of Office
Overview
This node operation disables or enables a user account in a tenant environment. It is useful for administrators who need to manage user access by toggling account status, for example, disabling a user who no longer requires access or enabling a previously disabled user. Practical applications include managing employee access during onboarding or offboarding processes.
Use Case Examples
- Disabling a user account by providing the user ID and tenant filter, setting 'Account Enabled' to false.
- Enabling a user account by providing the user ID and tenant filter, setting 'Account Enabled' to true.
Properties
| Name | Meaning |
|---|---|
| User ID | The user ID or email address of the user to be disabled or enabled. |
| Tenant Filter | The tenant ID or domain name to specify the tenant context for the user operation. |
| Account Enabled | Boolean flag to enable (true) or disable (false) the user account. |
| Request Options | Additional request settings such as batching, SSL certificate validation, proxy configuration, and timeout settings to control the API request behavior. |
Output
JSON
userId- The ID or email of the user whose account was enabled or disabled.tenantFilter- The tenant ID or domain name where the user account resides.accountEnabled- The resulting status of the user account after the operation (enabled or disabled).status- The response status indicating success or failure of the disable/enable operation.
Dependencies
- An API key credential for authenticating with the tenant's user management API.
Troubleshooting
- Ensure the User ID and Tenant Filter are correctly specified; incorrect values will cause the operation to fail.
- If the API request times out, consider increasing the timeout setting in Request Options.
- If SSL certificate validation fails, enabling 'Ignore SSL Issues' may help but use with caution due to security risks.
- Proxy settings must be correctly configured if a proxy is required for network access.