Accessing another user calendar using the O365 REST API from a single domain admin account


Thanks for your question! Today, the Office 365 Calendar REST APIs only allow retrieving or updating calendar of the authenticated user. We are really close to adding support for a service account that is granted access by an admin to all users in the tenant, and can retrieve and update calendars of users in the tenant without the user being present. So, your scenario should be unblocked in a few weeks. Stay tuned for an announcement on how to set up and use service accounts.

[UPDATE]: Alternately, you can use Exchange Web Services (EWS) SOAP APIs now to do this. Please check out how application impersonation works and here for using .NET EWS Managed API for app impersonation. The client side APIs available are .NET EWS Managed API and EWS Java API in case you use one of these runtimes.

[UPDATE]: Support for service accounts for REST APIs is now available. Please see our blog announcement for more details and let us know if you have any questions. Thanks for your patience.



How to start a program requiring admin rights as an admin user from a nonadmin account

I guess you're referring to is to trigger an UAC prompt on the newly created process. If so, just a few lines will do the trick, specifically removing the user/pass properties (since they'll be asked by Windows) and setting UseShellExecute to true:

ProcessStartInfo myProcess = new ProcessStartInfo(path);
myProcess.WorkingDirectory = @"C:WindowsSystem32";
myProcess.UseShellExecute = true;
myProcess.Verb = "runas";
Process.Start(myProcess);

Two caveats I've noticed with this approach is that, if the user cancels the prompt, an exception will be thrown saying that the user has cancelled (which you must be ready to cancel your processing). Also, if UAC is disabled/not present on the system, the process will NOT be elevated. To counter that, the launched program must be ready to check if it was really given admin permissions.

A complete different approach would be to just add a manifest to the target application (if yuo're able to recompile it) specifying that it requires admin permission.


Adding a new calendar programatically to calendar app if user is using non iOS account

Finally after a lot of research for few days , i found that Some EKExchange calendars like google , yahoo does not allow us to add events in their calendars . And if that is the case than you will get error with error code 17 as follows

"Domain=EKErrorDomain Code=17 "That account does not allow
calendars to be added or removed." "

There is nothing we can do about this error, So i ended up giving alert to user that "We do not have rights to access your calendar account". Hope this helps someone if they face similar issue.


Google Calendar to sign into centralized account, not individual user's account

Yes its possible. Save the refresh token for the app calendars in your server, client wont interact directly with the calendar api, instead goes through your php server which does the api calls.


Google Calendar API v3 domain wide delegated service account on PHP

Try this:

$cred = new Google_Auth_AssertionCredentials(
  $service_account_name,,
  array('https://www.googleapis.com/auth/calendar'),
  $key,
  'notasecret',
  'http://oauth.net/grant_type/jwt/1.0/bearer',
  'some.email@our.domain.com'
);

Tell Google who is the person you want to impersonate, and then you will be able to operate everything of google calendar for this user.


Google Apps Admin API: need to specify account user for service account?

No. You must have and know the email address of an account allowed to do what your want (typically a superadmin).

I agree that it is quite absurd for some APIs to require this (Admin, Directory, etc.).


Accessing another user calendar using the O365 REST API from a single domain admin account

Thanks for your question! Today, the Office 365 Calendar REST APIs only allow retrieving or updating calendar of the authenticated user. We are really close to adding support for a service account that is granted access by an admin to all users in the tenant, and can retrieve and update calendars of users in the tenant without the user being present. So, your scenario should be unblocked in a few weeks. Stay tuned for an announcement on how to set up and use service accounts.

[UPDATE]: Alternately, you can use Exchange Web Services (EWS) SOAP APIs now to do this. Please check out how application impersonation works and here for using .NET EWS Managed API for app impersonation. The client side APIs available are .NET EWS Managed API and EWS Java API in case you use one of these runtimes.

[UPDATE]: Support for service accounts for REST APIs is now available. Please see our blog announcement for more details and let us know if you have any questions. Thanks for your patience.



- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow