Cmdlets for Okta

Build 25.0.9434

Update-Okta Cmdlet

Parameters   Output Objects  

Updates Okta data.

Syntax

Update-Okta [parameters]

Remarks

The Update-Okta cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Okta data.

$conn = Connect-Okta -Domain 'dev-44876464.okta.com' -OAuthClientId 'myId' -OAuthClientSecret 'mySecret' -InitiateOAuth 'GETANDREFRESH'
Update-Okta -Connection $conn -Table "Users" -Columns @("ProfileFirstName") -Values @("John Doe") -Id "1"
The Where parameter can also be used to specify the primary key of the table:
Update-Okta -Connection $conn -Table "Users" -Columns @("ProfileFirstName") -Values @("John Doe") -Where "Id = '1'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Okta -Connection $conn -Table Users -Where "Id = '00uip08mzta1JvWRu5d7'" | Update-Okta -Columns @("Id") -Values @("00uip08mzta1JvWRu5d7 2")

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434