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: "Vogl,Greg" <>
- To: Benn Oshrin <>
- Cc: "" <>
- Subject: RE: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type
- Date: Sun, 23 Apr 2017 16:18:50 +0000
- Accept-language: en-US
- Authentication-results: internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=none action=none header.from=ColoState.EDU;
- Ironport-phdr: 9a23:v9OUThJXh4E1Qjrva9mcpTZWNBhigK39O0sv0rFitYgXKvr9rarrMEGX3/hxlliBBdydsKMazbGG+PG8EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT68bL9oIhi7rgrdu80ZjIB/Nqs/1xzFr2dSde9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0QrNEAjsoNWA1/9DrugLYTQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6apgVQTlgzkbOTEn7G7Xi9RwjKNFrxKnuxx/2JPfbIWMOPZjYq/RYdYWSGxcVchTSiNBGJuxYYsRAeQcIeZWoYrzp1UMohu/GQaiC+zgxyRUhnDtwaE2z/gtHR3E0QEmAtkAsG7UrNLwNKoKX+y6w67IzTrHb/9O2Dn98pbHch8vrfqRWr9+cNDRxlcgFwPClFWRqZbpMDyS1uQCt2iW9PRtVeWri24gtg9xviKgxtsyhYXTiYwbxF7L+Dx/zY0oK9O4T0t7bsSlEJtWryyaNo12Qt88TGFyviY11KEGtYChcCcU1Zsn2gbTa/OGc4iU4hLjSf2eLS1ki3JifbKznwy98VO4yuHmUMm7zkpKoyxYmdfPrnAAzwLf5dKbRvdg+0qtxCuD2x3W5+FKLk04ibbXJpsvwrEumZceskHOEyr3lUnrg6Kablgo9vas5uj9YbjquIWQO5Fohg3jKKgihNKzDOQ+PwMTRWaU4/6826fm/UDhQLVFkPk2kq7BvZ7COckVobK1DgFM3os98hizEi6q0NMDknYZNl5Ffw+Hj5TyNFHJPfD4C+qwj060kDdxwPDGIqPuDYnRLnjCl7fhe6xx60lByAovydBf4JVUCrIbLP3vXU/xscTUDh4/MwOq3+bqEMtx2ZkCVW6SB6KVLb7evUKN6+IhLOSAeJMZtTPzK/c76PPjjno0lFoccKW00pYbcHW4Ee5nI0Wdb3rsmNABEWISswQ/VuzlllKCUTlJZ3eyRa4z6TY7CI2iDYrYWo+th7iB3CCgHp1KfG9GFk6DHW32eIqZRvcAcDiSLdN5kjwYSbihTJcs2gqwuw/8zbpnKfHZ+iwetZL/ytd1/evTmg8u9TBqFciSzXyCT3xslGMSWzA2xLx/oVB6ylqbzad4hPlYGsZV5/xTXQc1K4fQz/FhC9/sQALBZcyESFKnQtW9HTExVcw9z8UPY0Z7B9WtkArD3yy0DL8JibCHHoI7/b/B3yu5G8Eo4XvA0uEGlFk8Q80HYWergKh43wnVG4PTlUiFzeCneblKjwDX82LWh1SJs0UcfxR9Xu+NCV8Fa0TRt8W/2ETNS5eFDrAgCRdI1cPEB4d3PI66xW5aTevubYyNK1m6nH29UFPRnuuB
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
I applied the patch to our code, and adding the identifier with custom type
using the API succeeded. Thanks!
Greg
-----Original Message-----
From: Benn Oshrin
[mailto:]
Sent: Saturday, April 22, 2017 3:23 PM
To: Vogl,Greg
<>
Cc:
Subject: Re: [comanage-users] error 400 Invalid Fields using API to add
identifier with custom type
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.