Search code examples
amazon-web-servicessingle-sign-ongoogle-admin-sdkgoogle-directory-api

Configuring single federated login to AWS using Google Apps using Users Patch API - Found array where value was expected



Last week I followed the steps in the "How to configure single federated login to AWS using Google Apps" tutorial, and everything went as expected. Yesterday (2016-12-12) I returned to the panel to use the "Users: patch" Google API to set up new roles for my users based on the Schema SSO created according to the tutorial, but I was not able to execute the request as I had done the previous week.

The following error message is displayed in the "Try this API" panel:

"Found array where value was expected"

Here is an example of the request body as defined in the tutorial (Note - in this example I am using placeholders for the values ​​of the value and customType fields):

{
  "customSchemas": {
     "SSO": {
       "role": [
         {
          "value": "<my aws role ARN>,<my aws provider ARN>",
          "customType": "Developer"
         }
       ]
     }
   }
}

From what I understand the message is related to the role field. I would like to understand what changed from the previous week to yesterday and how should I configure the JSON for the "Users: patch" API according to the SSO Schema created the previous week?


Solution

  • I was able to get to the "Freeform" editor and make the changes using this url instead of the one in the AWS documentation. I was having problems getting Postman to authenticate with google, which made this easier.