You cannot use the OAuth key and Secret from your domain's dashboard
to access user profiles. The only exception is if you explicitly grant
the application READ-ONLY access, which means you would need to
uncheck "Allow Access to All APIs" and then define all the APIs you
want to have access to.

I just went through this with my own domain. You can use the
ClientLogin authentication or your can use OAuth with an application
key and secret.

On Oct 18, 4:49 pm, Darin Lampson <[email protected]> wrote:
> Hello,
>
> I am using OAuth Playground, to test get all users
> viahttps://apps-apis.google.com/a/feeds/{domain}.com/user/2.0 and get the
> 401 unknown authorization header.  I am using the OAuth key and secret in my
> dashboard and I have enabled access the API.  Any ideas?
>
> Thanks
>
> GET /a/feeds/{domain}.com/user/2.0 HTTP/1.1
> Host: apps-apis.google.com
> Accept: */*
> Authorization: OAuth oauth_version="1.0", 
> oauth_nonce="999ed576cbd4863f1c119dbd0ce5d444", oauth_timestamp="1318970490", 
> oauth_consumer_key="{key}", oauth_signature_method="HMAC-SHA1", 
> oauth_signature="fjCnhLWwYBFUSn3b1iMhWkNtd1I%3D"Content-Type: 
> application/atom+xml
> GData-Version: 2.0
>
> HTTP/1.1 401 Unknown authorization header
> WWW-Authenticate: GoogleLogin 
> realm="http://www.google.com/accounts/ClientLogin";, service="apps"
> Content-Type: text/html; charset=UTF-8
> Date: Tue, 18 Oct 2011 20:41:30 GMT
> Expires: Tue, 18 Oct 2011 20:41:30 GMT
> Cache-Control: private, max-age=0
> X-Content-Type-Options: nosniff
> X-Frame-Options: SAMEORIGIN
> X-XSS-Protection: 1; mode=block
> Server: GSE
> Transfer-Encoding: chunked
>
> <?xml version="1.0"?>
> <HTML>
>   <HEAD>
>     <TITLE>Unknown authorization header</TITLE>
>   </HEAD>
>   <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
>     <H1>Unknown authorization header</H1>
>     <H2>Error 401</H2>
>   </BODY>
> </HTML>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply via email to