Querying the Google Domain Shared Contacts API via service account -
i'm writing application in c# aims query google domain shared contacts api retrieve (and update/add/delete) domain shared contact records. not supported via .net client libraries, have written procedure retrieve oauth 2.0 token include in request https://www.google.com/m8/feeds/contacts/example.com/full. believe have oauth 2.0 token request procedure correct, getting 403 forbidden error when calling above mentioned url token. however, if go oauth 2.0 playground , create token through there , use token instead in c# app, call succeeds , contact records returned.
my question - domain shared contacts api support being called credentials of service account?
the solution issue include email address of "overarching" domain administrator account user being managed ('sub' property of claimset when creating jason web token or 'user' property of serviceaccountcredential initialization). domain administrator has access domain data, call retrieve domain shared contacts succeeds.
Comments
Post a Comment