comanage-users - Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type
Subject: COmanage Users List
List archive
Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type
Chronological Thread
- From: Benn Oshrin <>
- To: "Vogl,Greg" <>
- Cc: "" <>
- Subject: Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type
- Date: Sat, 22 Apr 2017 17:22:57 -0400
- Ironport-phdr: 9a23:wTCGbR/M4idaDf9uRHKM819IXTAuvvDOBiVQ1KB20+IcTK2v8tzYMVDF4r011RmSDNudsK0P07OempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9ZDeZwRFiCCzbL5wIxm6sRjdvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/9KpgVgPmhzkbOD446GHXi9J/jKRHoBK6uhdzx5fYbJyJOPZie6/Qe84RS2hcUcZLTyFPH52yb4UPAeQCM+hXoYbyqFkSohWxHgSsGOHixyVUinPq06A30eIsGhzG0gw6GNIOtWzZocjrO6cUV+C+0bDGzS7Db/NM2Df97pXDfxc6rv6SW7Jwd83RxFIuFwPDklWft5blPzWL2eQRrWSX9fRvWv+yi2M+rQx6vzahxsApiobTh4IVzEjJ9SR/wIYpO9K4Ukh7bsC4EJdOrS2VKZZ5Qt46T2FnuSY61r0GuYOgcyQQ1JsnwBvfZ+SdfIiT+hLvTuCRLilkhH9jZbmxhA6y/FC+xuHgVcS4ylJHoyhfntXRuH0ByQbf5tabRvZ+5kus2SiD2xrc5+xEO0w5kbbXJ4Q/zrM/iJYet1nIEDXsl0XslqCWc10p+ui25OTjZbXrvp+cN4hxigH/LKsun9awAeU8MgQXRWeW+/6w1LL58ULkWrVFkOc5kqzZsJDdPsQburS1DBNS0oYm8xq/DjGm38oEnXQfMl5JZBGKg5LtNlzMOvz0EPmyj0q2nDt12/zLPaXtApDXIXjClLfhc6x960lZyAcr1t9Q+ZRUCrcGIP/oW0/xssDYAQEjMwyy3ennFMtx2pkAVm2SH6+VKLnSvkOQ5uIzP+mMY5cYtyr6K/gg/fHui2U2mVADcqWwwJsXc263Hu59I0iCZXrsg8wBEXsRvgYgVuDqiVuCUSJNaHaoWaIz+C07BJy8AYjdW4+tne/J4CDuVKNRaWQCJUqBHj2gI6qeVvgLcjPUHMhulhQvUrymcJMoyRzomSPHnelJNO3RrwcVs5Sr88N1/ezV3UU4+DpyCOyc1X2AVWd5gjlOSjMrivMs6Xdhw0uOhPAry8dTEsZesrYQCl83
I've pushed a fix to the 2.0 hotfix branch that should address this
issue. We don't have the resources to backport fixes to older branches,
but the patch should apply fairly cleanly to 1.0.5 (the version you
reported in your ticket) if you want to try it out:
https://github.com/Internet2/comanage-registry/commit/47b74153a25b92efe65daee269dffe982b12314d
Thanks,
-Benn-
On 4/18/17 1:35 PM, Vogl,Greg wrote:
> Colorado State University is in the process of implementing COmanage, and I
> am attempting to import all of our users using the API. Using the Postman
> Chrome plugin and an ASP.NET C# console application, all API calls have
> been working, including HTTP GET, POST, PUT and DELETE for 13 different
> API, except one:
> https://spaces.internet2.edu/display/COmanage/Identifier+API
>
> Using the COmanage user interface, in the Colorado State University
> collaboration, a custom type was added to Attribute Identifier (CO Person)
> with Name colostateedupersoncsuid and Display Name colostateEduPersonCsuId,
> and two identifiers with this type were added to a test person record. This
> identifier was edited using both the UI and both methods of calling the
> API. But when trying to add another identifier of this type using the API,
> I always get an error: 400 Invalid Fields.
>
> This is an existing identifier using GET identifiers.json:
> {
> "ResponseType": "Identifiers",
> "Version": "1.0",
> "Identifiers": [
> {
> "Version": "1.0",
> "Id": "12",
> "Identifier": "999999999",
> "Type": "colostateedupersoncsuid",
> "Login": true,
> "Status": "Active",
> "Person": {
> "Type": "CO",
> "Id": "13"
> },
> "Created": "2017-04-10 16:52:34",
> "Modified": "2017-04-10 17:10:21",
> "Revision": "1",
> "Deleted": false,
> "ActorIdentifier": "CSUAPIUser"
> },
> ...
>
> This is the request body for POST identifiers.json:
> {
> "ResponseType": "Identifiers",
> "Version": "1.0",
> "Identifiers": [
> {
> "Version": "1.0",
> "Identifier": "777777777",
> "Type": "colostateedupersoncsuid",
> "Login": true,
> "Status": "Active",
> "Person": {
> "Type": "CO",
> "Id": "13"
> }
> }
> ]
> }
>
> This is the response body:
> {
> "ResponseType": "ErrorResponse",
> "Version": "1.0",
> "Id": "New",
> "InvalidFields": {
> "type": [
> "content"
> ]
> }
> }
>
> I tried adding a shorter custom type (csuid), but when trying to add an
> identifier of that type using the API, I got the same error.
>
> What more can I do to diagnose and fix this problem?
>
> Thanks,
>
> Greg Vogl
> Middleware Developer
> Colorado State University
>
- [comanage-users] error 400 Invalid Fields using API to add identifier with custom type, Vogl,Greg, 04/18/2017
- Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type, Benn Oshrin, 04/19/2017
- Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type, Benn Oshrin, 04/22/2017
- RE: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type, Vogl,Greg, 04/23/2017
Archive powered by MHonArc 2.6.19.