my application creates new user , needs manage events in user's calendar immediately.
user = directory.users().insert(body=new_user).execute() { ... 'primaryemail': 'email@domain.com', 'suspended': true, 'suspensionreason': 'web_login_required' }
but calendar not available, until user log-in via web.
calendar.calendars().get(calendarid='email@domain.com').execute() { "error": { "message": "not found", "errors": [ { "message": "not found", "reason": "notfound", "domain": "global" } ], "code": 404 } }
so questions are:
- can activate user via api without web login?
- can create or activate user's calendar via api directly?
thanks answers , suggestion in advance!
i don't believe possible these users not have accepted google tos yet , cannot accept these via api i'm aware of.
this property name, agreedtoterms
, boolean can pulled directory api cannot written to.
Comments
Post a Comment