Discussion Locked

CDO1.21-Log on to Other User's Calendars

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We are using Exchange2000, Win2K, IIS5.0, and Outlook2000. What must I do (from a configuration and programming standpoint) to add an appointment to someone else's calendar programmically). When I use the CDO logon method, I do not have the security rights to make the appointment.

3 replies

by stillatit

The owner of the calendar must grant the login you are using sufficient rights to change the calendar. Note that you also need the right in the user's mailbox to see the folders (in order to traverse the folders to even see the calendar).

Good luck.

by rtimblin

I have 100 users, each user would have to be given rights to all other users for this to work. Doesn't seem logistically nor security feasible.

by gefc

Using CDO you cannot open another users calendars. The best method to do this in EX2K is using ADO records with the Web Storage System. Given appropriate rights you can do this. Example for a public folder below (from MSDN). Change the URL to point to a private folder.

Set Conn = CreateObject("ADODB.Connection")
Set Rec = CreateObject("ADODB.Record")
Conn.Provider = "ExOLEDB.DataSource"
(open the folder record with write access)
Conn.Open "http://myserver/public/folder/"
Rec.Open "http://myserver/public/folder/", Conn , adModeReadWrite
(set the default document property)
Rec("DAV:defaultdocument")="http://myserver/public/folder/Default.htm"
(save the changes)
Rec.Fields.Update
Rec.Close
Conn.Close

This discussion is closed to new replies.