Setting OOF for other users using EWS

Hello everyone,
I try to set the OOF for other users using EWS in an Exchange 2010 SP2 environment.
I use this code:
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
service.Credentials = new NetworkCredential("username", "password", "domain");
service.TraceEnabled = true;
service.TraceFlags = TraceFlags.All;
service.AutodiscoverUrl("[email protected]");
OofSettings OOFSettings = new OofSettings();
OOFSettings.ExternalAudience = OofExternalAudience.All;
OOFSettings.ExternalReply = "Test";
OOFSettings.State = OofState.Enabled;
service.SetUserOofSettings("[email protected]", OOFSettings);
The account I use is a Service Account our Exchange Team set up. I can see all service properties, so I would assume that the connection to the ExchangeService works fine.
However when SetUserOofSettings executes, I receive a ServiceResponseException “Connection did not succeed. Try again later”.
What am I missing? Unfortunately, the error message does not provide any helpful informations.
Thank you and best regards
Julian

>The account I use is a Service Account our Exchange Team set up. I can see all service properties, so I would assume that the connection to the ExchangeService works fine.
 What rights have they given the account, giving an Account Exchange Admin permissions won't give you any rights to access the Mailbox content. For this to work the account you using would need to be either have been granted Full Access via Add-MailboxPermission
or been given Application Impersonation rights (if its the later you need to make sure you use impersonation in your code).
 I would suggestion you try using the EWSEditor
http://ewseditor.codeplex.com/ to test this out eg try connecting to the users folders and then try the OOF operation via the EWSEditor option to see if this works.
 Other things to check is if this is a Brand new mailbox that has never been connected to before then the Mailbox folders won't be initialized (you can check this using Get-Mailboxstatistics) and you would get an error trying to perform any of
the EWS operations. If it works on some users and not others the possibly your getting throttled.
Cheers
Glen

Similar Messages

  • Password security - set permissions for different users

    I am using Abobe Acrobat 9 Pro.
    In the HELP menu, there is a security section in the contents, In the overview, it states the following:
    "Each security method offers a different set of benefits. However, they all allow you to specify encryption algorithms, select the document components to encrypt, and set permissions for different users."
    I would like to know how you can set permissions for different users using Password Security.
    I am the only one in the company who has Acrobat 9 Pro and all others have Adobe Reader 8.
    I have created a PDF file in Acrobat 9, this file is accessible to anyone with Abobe Reader. I would like to set different permissions for different users. For example, i would like certain individuals to print the document and other individuals to not be allowed to print. Can this be acheived using Password Security?
    Many Thanks

    I have created a PDF file in Acrobat 9, this file is accessible to
    anyone with Abobe Reader. I would like to set different permissions for
    different users. For example, i would like certain individuals to print
    the document and other individuals to not be allowed to print. Can this
    be acheived using Password Security?
    No.

  • Writing client app to connect to Exchange Server 2013 and set OOF for users on vacation

    I am coding an C# app that should connect to Exchange Server 2013 on-premise (Servers Location is not in our Company). I`ve got an account (User and Pass) with readonly admin-rights for now and want to read and set OutOfOffice Objects for other users. I
    decide to use EWS Managed API over Autodiscovery but I am bit confuse how
    I tried to connect with "service.UseDefaultCredentials = true" and read contacts -> this code works:
    try
                ExchangeService _service
    = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
                _service.Credentials
    = new WebCredentials("service.exchange",
    "1234", "domain");
                _service.TraceEnabled
    = true;
                _service.TraceFlags
    = TraceFlags.All; _service.UseDefaultCredentials
    = true;
                _service.AutodiscoverUrl("[email protected]",
    RedirectionUrlValidationCallback);
                foreach
    (Contact contact in _service.FindItems(WellKnownFolderName.Contacts,
    new ItemView(2)))
    var test = contact;
            catch
    (Exception exception)
                Console.WriteLine(exception);
    After that I tried the same with _service.UseDefaultCredentials = false; got error -> "The Autodiscover service couldn't be located." I am not shure if this "direct log on" is the right way, On msdn I've read about "delegate access"
    and "Impersonation" (NTLM and Basic Authentication) I'am a bit confused. Can anybody help me?

    hi,
    when you set a credential, you don't have to set the UseDefaultCredentials property (it is already updated).
    For autodiscover, you should try to set the property EnableScpLookup to True if you are in the Exchange domain or it is known by the current domain.
    Autodiscover uses a domain query (through Active Directory) and/or a dns query (this requires a DNS register for autodiscover.domain.net) to determine the access to the autodiscover service URI.
    Regards,
    Désiré GOVIN Refresh IT Solutions

  • While using skype on my iphone 4s i found after an hour or so the iphone was very warm and actually bit hot. Is this normal for other users too?

    While using Skype on my iphone 4s i found the phone was heated up. It was very warm. I had used for 1 hour or so. Is this normal for other users aswell ?
    And also sometimes when i get the call no matter how much i try to slide the cursor, it doesn't move. I miss those calls. It looks like it is freezed. Has this
    happened to others too?

    *Update*
    I thought I had found the offending 'app' namely "Songpop."
    I regularly use "Songpop" on my phone late at night via my wifi connection.
    All enteries on my phonebill are at midnight (even though I have a data allowance it was excluded from allowance). I switched 3G off on Friday, played "Songpop" at midnight and at the exact time I got a "Server Error" message.
    I posted a message on the "Songpop" support forum.At first they said this was a problem relating to my ISP.
    I have spoken to my ISP and asked if there are connection drops at the time I have been billed (ie to establish if my wifi dropped and 3G kicked in without my knowledge) and have been advised that there aren't any connection drops at that time.
    "Songpop" have now responded that "This is an issue to take up with Apple Support"  see: http://support.songpop.fm/songpop/topics/playing_songpop_on_phone_via_wifi_but_i ncurring_download_data_charges_for_3g_useage?utm_content=topic_link&utm_medium=e mail&utm_source=reply_notification
    Hopefully someone at Apple can respond ....

  • How to let other users use my customization?

    Hello,
    I have a few nice dynamic pages with bind variables.
    I use the user PORTAL to customize my bind variables, but what I customize is not for other users, they see the result of the default bind variables.
    Surely there is a way to set the customization from a designer for the whole comunity. My question is how to pull that off.
    Thanks for any information in advance.
    Kind Regards,
    Arnoud M. Barth

    Hi,
    You can set customizations at the system level by clicking on the edit defaults link of the portlet. This changes the default values of the portlet. In 309 or release 1 clicking on the edit page will show you the edit defaults link on the right hand corner of the portlet. In case of 902 or release 2 each portlet has a actions icon. Clicking on that will bring you a list of actions you can perform on a portlet. You will have "Edit Defaults" link here.
    Thanks,
    Sharmila

  • I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this?

    I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this? I have 4 blocks of Single Choice fields in order for the summary page to give me each day in the final report. But, I need the user to be able to make a selection of any day and time and that apointment to no longer be available to future users when they log in. Plus, when the user clicks on the time, they are unable to change their mind and choose another time. Here's the link if you want to see what I'm talking about: 2015-2016 Workload Apportionment Review

    I'm afraid not.    It's not rocket science but you need to do some coding. 
    You'll need to find a script (php) and save it to your local site folder.  Then reference the script in your form's action attribute like so.
         <form action="path/form-to-email-script.php" >
    The input fields in your HTML form need to exactly match the script variables. 
    I'm  assuming you're hosted on a Linux server which uses PHP code.  Linux servers are also case sensitive, so upper case names are not the same as lower case names.  It's usually best to use all lower case names in your form and script to avoid confusion.
    Related Links:
    Formm@ailer PHP from DB Masters
    http://dbmasters.net/index.php?id=4
    Tectite
    http://www.tectite.com/formmailpage.php
    If this is all a bit beyond your skill set, look at:
    Wufoo.com (on-line form service)
    http://wufoo.com/
    Nancy O.

  • View + stored function + synonym for other user

    Dear All!
    I've got a quite strange problem which I cannot decide whether it's caused by my lack of knowledge on the appropriate topic or by an Oracle bug. I'm already after some heavy googling on the topic and I was unable to track any valuable answers neither in forums nor in the Oracle documentation. I'll try to be as short and specific as possible.
    Database: Oracle 10g
    Result of "SELECT BANNER FROM V$VERSION":
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    "CORE     10.2.0.4.0     Production"
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    I have two users in the database for a single Web application: UAPP01, which is the owner of application DB objects and UAPP02 which is the application user connecting to the DB. The application runs for quite many years by now and DB structure layout has always been following a simple logic: for each DB object used by the app. (tables, views, packages and stored procedures/functions) and found in the UAPP01 there exists a synonym in the UAPP02 schema. For the privileges to be set correctly a role is created: RL_MY_APPL which is granted the necessary privileges on objects of UAPP01 (CRUD on tables, SELECT on views, EXECUTE on procedures, etc..). This role is granted to UAPP02.
    In the previous days I was about to extend the DB with a view that invokes a stored function. This pattern has already occured in the DB previously so I kept following existing conventions: I've created the stored function and the view in the UAPP01 schema, granted SELECT on the view to RL_MY_APPL and created the synonym for it in the UAPP02 schema. This is where the entire functionality began to act strange. I'll try to explain with a simplified example that was sufficient to reproduce the problem:
    REM ========================================
    REM Execute below code as UAPP01 user.
    REM ========================================
    REM Test function.
    CREATE OR REPLACE FUNCTION testfunction(p_param NUMBER) RETURN NUMBER IS
    BEGIN
    RETURN p_param *2;
    END;
    REM Testview version 1. causing trouble.
    CREATE OR REPLACE VIEW testview AS
    WITH testdata AS
    SELECT /*+ materialize*/ LEVEL AS d
    FROM dual CONNECT BY LEVEL <= 100
    SELECT a, b, c, SUM(d) AS sum_d
    FROM
    SELECT FLOOR(dbms_random.VALUE(1, 100)) a, FLOOR(dbms_random.VALUE(1, 100)) b, FLOOR(dbms_random.VALUE(1, 100)) c, testfunction(d) AS d
    FROM testdata
    GROUP BY CUBE(a, b, c)
    REM Testview version 2. not causing trouble.
    CREATE OR REPLACE VIEW testview AS
    SELECT a, b, c, SUM(d) AS sum_d
    FROM
    SELECT FLOOR(dbms_random.VALUE(1, 100)) a, FLOOR(dbms_random.VALUE(1, 100)) b, FLOOR(dbms_random.VALUE(1, 100)) c, testfunction(d) AS d
    FROM
    SELECT LEVEL AS d FROM dual CONNECT BY LEVEL <= 100
    GROUP BY (a, b, c)
    REM Synonym.
    CREATE OR REPLACE SYNONYM UAPP02.testview FOR UAPP01.testview;
    REM Grants.
    GRANT SELECT ON testview TO RL_MY_APPL;
    When creating TESTVIEW with the 1 ^st^ version I cannot query it using the UAPP02 user, I'm constantly getting the error: ORA-00904: : invalid identifier. However, when I use the 2 ^nd^ version everything runs perfectly. What is common in the two cases is that both versions use the TESTFUNCTION function. I have not granted the EXECUTE rights on TESTFUNCTION to the RL_MY_APPL since it was never needed previously (for other views using stored functions) and as far as I know it's not necessary (as both the view and the function are owned by UAPP01). The strange thing in the above behaviour is that the function is used by both versions, however only one of them fails. This is where I thought it's not a granting issue, otherwise neither of the versions would have worked and I think I would have received a different error stating that UAPP02 lacks the necessary privileges on underlying objects of the view.
    As I further digged into the problem by examining the EXPLAIN PLAN output for the two versions I found that version 1. leads to a TEMP TABLE TRANSFORMATION and to MULTI TABLE INSERTs, whereas version 2. simply executes the query without doing such things. In my setup I presume the MULTI TABLE INSERTs were caused by the GROUP BY CUBE. When I simply removed the CUBE and used only GROUP BY the TEMP TABLE TRANSFORMATION remained in place but the MULTI TABLE INSERTs disappeared. As a result of this small modification the view again began to work when I executed it through the synonym and using the UAPP02 user.
    With the original DB objects of our application the behaviour is even more strange: the error comes up if I select from the view and filter for a column that is grouped in the query whereas it works correctly if I filter for the aggregated columns. However, I couldn't reproduce this with the above simplified example.
    No problem occurs with any of the versions if I query the view using the UAPP01 user.
    This hectic behaviour made me suspect that the TEMP TABLE TRANSFORMATION + MULTI TABLE INSERT + synonym + stored function combo appears to bring a strange Oracle bug to the surface...
    As a final note: when executing GRANT EXECUTE ON TESTFUNCTION TO RL_MY_APPL everything works fine in all cases. I know I could simply live with this but I'd really like to get to the bottom of this. Although this extra GRANT appears to solve the problem I don't really trust it. I'd really like to avoid the bug emerging again in Production in case this extra GRANT were not sufficient due to some unknown misteries.
    Excuse me, the post has become a bit lengthy. Thanks in advance for anyone who's willing to read through and answer it!
    Regards,
    Krisztian Balazs Szaniszlo

    The error is thrown at run-time and only for the UAPP02 (second) user.
    The problem is that the appearance of errors is independent of whether the query contains the call to the stored function or not.
    So far I thought that if I use a stored function indirectly, like in this setup: UAPP02.synonym -> UAPP01.view -> UAPP01.stored function, then I don't need the grant. Of course, I understand that if I had used it directly, like :UAPP02.synonym -> UAPP01.stored function then I'd need the GRANT EXECUTE.
    Shall I just ignore the strange behaviour and go on by adding GRANT EXECUTE privilege on all the functions used indirectly through views? It seems to solve the problem, but this behaviour is disturbing me quite and I fear the real root cause of the problem can emerge later in a different fashion.

  • IBot user not receiving dashboard alert/email not the case for other users

    Hi,
    I have a user who can create iBots and is able to deliver them to other users. However the user themselves cannot receive any iBot alerts on the dashboard or via email, even for iBots that they create themselves.
    I've checked their account setting and their email is configured, they are part of the correct user groups etc. This user has never been able to receive any iBot alerts or any iBot content.
    Can you let me know what else I can check as iBots are working for other users?
    Regards,
    AT

    Thanks Jay,
    They are part of the same group (in fact thety are part more groups as well) as other users for whom alerts and iBots work. They have the relevant priviliges under Delivers, their email is correct.
    They have access to the relevant Subject Area as it is ther user themselves who create the report and try to send it out using and iBot, other users receive the report apart from themselves. They themselves don't receive any alerts or emails.
    Rregards,
    AT

  • Message no visibility for other users

    Since I started working with Message Beta my account visibility for other users is offline.
    With 'the old'  iChat my online status was visible to other users.
    With Message however non of my chatfriends can see that i'm online even if my status shows online and visible in Message.
    The only thing other friends see is that i'm offline!
    Who knows the answere?

    Hi,
    If you have multiple accounts/Buddy lists go to the Messages Menu > Preferences > General Section and use the item to unlink the Buddy Lists
    Now check each one and also the setting to make them all the same.
    If that does not work try Deleting the Account and then re-adding it/them
    10:22 PM      Friday; April 13, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Is it possible to reset password for any user using abap program

    Hi friends,
    Is it possible to reset password for any user using abap program by specifying client number and user id. in selection screen.
    if any code for that to reset password please mail me.
    Thanks & Regards,
    Yogesh

    Hello Yogesh,
    Yes you can reset the password for any body using ABAP Code. But for that you really don't need any client number.
    If this process is on regular basis, then recommended is to use BAPI for changing the user details Otherwise BDC also works fine.
    => Function Module - BAPI_USER_CHANGE
    Call this in the program for resetting the password.
    => CALL TRANSACTION 'SU01' USING InternalTable
    This will be executed in the BDC of SU01 transaction recording. Use the Password Change button in the application toolbar of transaction while recording.
    Hope this helps.
    PS If the answer solves your query, plz close the thread by marking it solved and rewarding each reply.
    Regards

  • Network folders for "other" user

    I have managed to set up a lab of iMacs (new) bound to AD via Windows Server. I had users make shortcuts to their 3 main network folders. Works fine. Users can't always get to "their" workstations though so I'd like to set up the "other" user to load those same three network folders on log in, or at least make it easy for them to do it once logged in. As is, the server shows up a finder window's left pane under "Shared" but they have to drill through the whole server to find their own folders.
    I'm just a teacher here, though I've made WAY more progress then the IT bozos that get paid for this, they have deferred to me (thank goodness).
    Any help much appreciated.

    I followed the suggestion of plugging the EX2 directly into the Windows8 PC, and it didn't work, in-fact the internet stopped working, until I reverted the connection and let windows fix the problem. I did make a minor step with homegroups, as I felt there was no where to turn but to try to get homegroups working once again.  It works, the homegroup sees the other computer, but every second, yes, every second, when you click on the homegroup icon in windows explorer, the window to the right changes from the name of the Windows 8 computer to immediately No other homegroups PC's are available right now, that happens every second, I can time it, it switches every 1-2 seconds between the name of the Windows 7 computer to the error I posted a few words back.  Sharing anything drive on the EX2 so it can be accessed on Windows8, same as it always has been, I don't see the drive on Windows8.  Mapping the drive on Windows7 works flawlessly, except, I have a few files that I know I didn't delete but are not showing up, and I have transcoded folders ? As well I can't share any folder on the EX2 because it's listed under the user nobody and it's restricted to that users control for which I don't have a password for ?

  • Mac is freezing no programs running yet no trouble for other user

    My mac keeps freezing yet no trouble for other user. No program's run without 5 mins of coloured wheel rotating. Also time machine not operating properly as computer is not recognising it. Apple support centre not much help as it took them 10 mins just to get my details straight! Anyone with similar problem and successful solution?
    Thanks.

    Tried Mac HD utility first aid but advised it can't repair disk.
    It's possible you have directory damage.  You will need to get that repaired asap by using/purchasing a stronger 3rd party utility.  The more you use the computer, the worse it will get. 
    Utilities are best run from the CDs  to avoid system interference & false readings/reports.  You must use the versions that are compatible w/your OS system & keep the utilities updated to avoid damaging/harming/trashing your system. You need to make your own decision on which to purchase.  Read up on them on their websites because each do something a little different.
    DiskWarrior (Highly Recommended for Directory Damage Repair)
    Techtool Pro
    Drive Genius

  • I want to secure my email account for other users of the i-pad. Is this possible?

    I want to secure my e-mail account for other users of the i-pad....
    Is this possible???

    no.
    The only way is if you use a webmail app - not the included e-mail app - so you can password protect it online.
    The iPad is meant to be a single user device so it has no protocols to partition off any part of it (beyond what restrictions allow)

  • Setup iPad for other user when iCloud pw is unknown.

    I'm a tech director for a school district with ~450 iPads. Often, I get students or staff who move out and leave their iPads logged into iCloud as themselves. I need to get these iPads setup for other users. How can I setup an iPad if the previous user is long gone?
    Nobody is going to give me their Apple ID password and I wouldn't expect them to. Recovery mode lets me wipe it but I still need to enter the previous user's Apple ID and pw to proceed.
    I don't use Configurator; I prefer iTunes.

    Might be some help on this link, but you may need the password.
    How to Safely Delete an iCloud Account
    http://9to5mac.com/2013/07/13/how-to-safely-delete-an-icloud-account-from-your-m ac-or-ios-device/
     Cheers, Tom

  • Is it possible to mass change desktop wall paper for all users using WGM?

    is it possible to mass change desktop wall paper for all users using WGM?

    yes, it's easy - change a machine to the desktop you want (the image must be on all the machines, with the same name, of course), find ~/library/preferences/com.apple.desktop.plist Copy that to your server (or just put it on a flash drive) In workgroup manager select preferences - details - "add". Navigate to that plist. (Optional - hit "edit" and cut and past from "often" to "always", then the user cannot change the desktop at all, if you leave it in "often" it will reset next log-on.)

Maybe you are looking for

  • How can i use a component twice in the same movie clip

    Excuse me am a beginner in this as2 below is the script used: PeelIt is a component. /////////////////////////////////////////////////1st frame contains the below: PeelIt._visible = false; PeelIt.init(); PeelIt.Peel(); ///////////////////////////////

  • Function in SQL expression

    can we use function which has exception hadler defined in it in a SQL expression?

  • How to install analytic workspace manager?

    I have Oracle 9.2.0.1 running on Windows. I have installed 9.2.0.3 database patch. I couldn't see analytic workspace manager tool? How to get the tool? I will greatly appreciate if you can guide me with some links or steps.

  • Materialized View Log

    Hi, I would like to create Fast refresh Materialized View in owb Create Materialized View F_CALL_DAY_MV PARALLEL LOGGING BUILD IMMEDIATE REFRESH FAST ENABLE QUERY REWRITE AS SELECT FCALL.ACCOUNT_DIM_ID, FCALL.INVOICE_DIM_ID, FCALL.SCHEDULER_DIM_ID, F

  • Need help with OS Update

    So I'll cut it short. Downloaded a new OS. I installed a new OS. Wiped my OS. Deleted Vendor.xml Launched Loader.exe Went through the proccesses. The only problem is its just sitting doing nothing. I dont know if it is. But it looks as if its stuck o