<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007x6gZoCAIOkta Identity EngineWorkflowsAnswered2024-01-11T14:49:44.000Z2022-08-17T08:23:37.000Z2022-08-22T07:58:49.000Z

SarahS.89561 (Customer) asked a question.

Update user card failing with invalid property type

I have a table with OKTA ID in and six possible options for a string array, not all cell's have values, I'm running into an issue when I do a constuct from the table and pass the value to the update user card, if any of the values are empty it erros with the above message

 

I have around 8000 users to update and most will have only one or two of those options selected in the table, how do I get around the issue of the empty values

 


  • Tim LaBorn (Workflows)

    Hello Sarah,

     

    The screenshot apparently didn't take so I don't see an error message. But the mention of update user there is two options: Partial or Strict and they behave very differently.

     

    Partial is a "POST" action and only updates values that were provided.

     

    Strict is a "PUT" action and requires all possible values be filled out and will treat all non-defined values as empty. If they are a required value I would expect an error to occur.

     

    More detail can be found in the API documentation: https://developer.okta.com/docs/reference/api/users/#update-user

     

    Using "Partial" and passing in empty values into multiple properties in the update User card did not result in any errors for me in my testing.

    Expand Post
    • SarahS.89561 (Customer)

      Hi Tim

       

      I think I worded it badly, what I need is a way to remove the empty values fromt he below and can't seem to find a way to do it

       

      [

       "spec001",

       "spec002",

       "spec003",

       "",

       "",

       ""

      ]

      Expand Post
  • Tim LaBorn (Workflows)

    Here is an example to meet the newly explained use case:

     

    (Edit: I used the word "list of text object" which is incorrect. Ignore the word object. It is just a JSON formatted list/array of text/strings)

     

    imageimageimage

    Expand Post
This question is closed.
Loading
Update user card failing with invalid property type
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply