Skip to main content

Baseaccount

Properties

NameTypeDescriptionNotes
IdStringThe unique ID of the referenced object.[optional]
NameStringThe human readable name of the referenced object.[optional]
AccountIdStringAccount ID.[optional]
SourceAccountsource[optional]
DisabledBooleanIndicates whether the account is disabled.[optional] [default to $false]
LockedBooleanIndicates whether the account is locked.[optional] [default to $false]
PrivilegedBooleanIndicates whether the account is privileged.[optional] [default to $false]
ManuallyCorrelatedBooleanIndicates whether the account has been manually correlated to an identity.[optional] [default to $false]
PasswordLastSetSystem.DateTimeA date-time in ISO-8601 format[optional]
EntitlementAttributes[map[string]AnyType]https://learn.microsoft.com/en-us/powershell/scripting/lang-spec/chapter-04?view=powershell-7.4Map or dictionary of key/value pairs.[optional]
CreatedSystem.DateTimeISO-8601 date-time referring to the time when the object was created.[optional]
SupportsPasswordChangeBooleanIndicates whether the account supports password change.[optional] [default to $false]
AccountAttributes[map[string]AnyType]https://learn.microsoft.com/en-us/powershell/scripting/lang-spec/chapter-04?view=powershell-7.4Map or dictionary of key/value pairs.[optional]

Examples

  • Prepare the resource
$Baseaccount = Initialize-Baseaccount  -Id 2c91808568c529c60168cca6f90c1313 `
-Name John Doe `
-AccountId John.Doe `
-Source null `
-Disabled false `
-Locked false `
-Privileged false `
-ManuallyCorrelated false `
-PasswordLastSet 2018-06-25T20:22:28.104Z `
-EntitlementAttributes {"moderator":true,"admin":true,"trust_level":"4"} `
-Created 2018-06-25T20:22:28.104Z `
-SupportsPasswordChange false `
-AccountAttributes {"type":"global","admin":true,"trust_level":"4"}
  • Convert the resource to JSON
$Baseaccount | ConvertTo-JSON

[Back to top]