Your scenario is possible with Google Apps Premier/Education edition's 2-legged OAuth feature. Note, C has to be an administrator.
We're working on documenting this feature, but some information is here: http://www.google.com/support/a/bin/answer.py?hl=en&answer=61017 Essentially, C can impersonate B and add user A as a collaborator on a document. Happy (late) Thanksgiving, Eric On Nov 19, 1:40 pm, "Patricia Goldweic" <[EMAIL PROTECTED]> wrote: > > -----Original Message----- > > From: [email protected] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Eric (Google) > > Sent: Wednesday, November 19, 2008 3:08 PM > > To: Google Docs Data APIs > > Subject: Re: A question about available functionality > > > Hi Patricia, > > > I'm not sure if I fully understand what you're trying to do, > > but both the Calendar and DocList API offer access control > > features that you may use to assign roles: > > >http://code.google.com/apis/documents/docs/2.0/developers_guid > > e_protocol.html#AccessControlLists > >http://code.google.com/apis/calendar/docs/2.0/developers_guide > > _protocol.html#SharingACalendar > > > That being said, user A wont be able to view user B's > > document until B has granted A permission (reader, > > collaborator, etc) to the document. > > Hi Eric, > Thanks for responding. I actually understand the access control features of > both apis. To clarify my question (using your example with users A and B), I > was asking whether you can write a program that logs in as a different user > (neither A nor B; call it C, or admin) and that would be able to grant A > permission to B's document. > Hope this makes more sense, > -Patricia > > > Eric > > > On Nov 19, 8:22 am, "Patricia Goldweic" <[EMAIL PROTECTED]> > > wrote: > > > Hi, > > > It would be very convenient if I could get the following behavior > > > working in my web app: when somebody clicks on a particular link, I > > > assign them permission to see a certain piece of content > > that belongs > > > to somebody else (somebody who wants this to happen, of course). > > > Unfortunately, from what I understand, it appears that I can > > > programmatically assign permission over a piece of content > > ONLY if I > > > log in as the owner of that content*, but then, it follows that I > > > won't achieve the desired behavior. Is this an accurate conclusion? > > > > For more details, I believe I need the following > > functionality to get > > > this to work: > > > - Using AuthSub or an alternate, be able to log in as an admin, and > > > assign the permissions I need over the content of owner 1 (either a > > > Google calendar or a Google doc at this point; in the > > future hopefully > > > also a site) to owner > > > 2 > > > > Thanks, > > > -Patricia > > > > *: I am assuming that AuthSub is used for this purpose > > > [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Docs Data 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-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---
