401 error when attempting to update domain profile

20 views
Skip to first unread message

Lucas Lacroix

unread,
Sep 29, 2011, 5:33:22 PM9/29/11
to google-app...@googlegroups.com
First, I need to say that I am not using any of the client libraries as my company works primarily with our own proprietary language, so I cannot provide any source code.

I am able to pull the profile for the user, make modifications to the XML, but when I attempt to PUT the profile back, I am getting an "401 Unknown Authentication Header" error message from the server. I am using 2-legged authentication and I have enabled read/write client access for contacts through the domain control panel.

Does anyone know if 2-legged auth will not work for updating? Is it only good for pulling data, which I am able to do very easily? Creating or using an existing user as a service account seems plan silly.

The HTTP request is:

The xoauth_requestor_id parameter was required on the preceding profile retrieval - without it, Google would return a 401. I've tried the update with and without the additional parameter, but it errors in both cases.

If anyone has any tips, I would greatly appreciate it.

Gunjan Sharma

unread,
Sep 29, 2011, 6:10:12 PM9/29/11
to google-app...@googlegroups.com
Hello Lucas

This forums are for issues related to domain. Your issue seems to be about Profiles API. You can post your question here. Sorry for the inconvenience.

Thanks
Gunjan Sharma
Reply all
Reply to author
Forward
0 new messages