Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

How to retrieve the BookInPolicy for a room mailbox

$
0
0

Hi,

So basically, I am trying to check if a given user has permission to a book a restricted room in my org.

ExchangeService exchange = setupExchange(); // This setups exchange with the right credentials. This part is working as I have used the same setup function retrieve availabilities of a room and an user.

Mailbox meetingMailbox = new Mailbox("xyxz@amazon.com");
FolderId folderId = new FolderId(WellKnownFolderName.Calendar, meetingMailbox);
UserConfiguration userConfiguration = UserConfiguration.bind(exchange,
                                                                                          "Calendar",
                                                                                           folderId,
                                                                                           UserConfigurationProperties.All);

So when I run this part of code, it blows up on UserConfiguration bind method. I am trying to access the BookInPolicy eventually.


Could some one tell me how do I achieve this?

-Hrushikesh



Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>