Skip to main content

Rolemetadatabulkupdatebyqueryrequest

Properties

NameTypeDescriptionNotes
Query[SystemCollectionsHashtable]https://learn.microsoft.com/en-us/dotnet/api/system.collections.hashtable?view=net-9.0query the identities to be updated[required]
OperationEnum [ "ADD", "REMOVE", "REPLACE" ]The operation to be performed[required]
ReplaceScopeEnum [ "ALL", "ATTRIBUTE" ]The choice of update scope.[optional]
Values[]RolemetadatabulkupdatebyqueryrequestValuesInnerThe metadata to be updated, including attribute key and value.[required]

Examples

  • Prepare the resource
$Rolemetadatabulkupdatebyqueryrequest = Initialize-Rolemetadatabulkupdatebyqueryrequest  -Query {"query\"":{"indices":["roles"],"queryType":"TEXT","textQuery":{"terms":["test123"],"fields":["id"],"matchAny":false,"contains":true},"includeNested":false}} `
-Operation REPLACE `
-ReplaceScope ALL `
-Values null
  • Convert the resource to JSON
$Rolemetadatabulkupdatebyqueryrequest | ConvertTo-JSON

[Back to top]