Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get a list of shared mailboxes for a user? #750

Open
Nishikant1103 opened this issue Dec 9, 2021 · 1 comment
Open

How to get a list of shared mailboxes for a user? #750

Nishikant1103 opened this issue Dec 9, 2021 · 1 comment

Comments

@Nishikant1103
Copy link

    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
    ExchangeCredentials credentials = new WebCredentials("username", "pwd");
    service.setCredentials(credentials);
    service.setUrl(new URI("https://xyz/EWS/Exchange.asmx"));

    Mailbox mailbox = new Mailbox("sharedMailboxAddress");
    FolderId folderId = new FolderId(WellKnownFolderName.MsgFolderRoot, mailbox);

    FolderView folderView = new FolderView(20);
    FindFoldersResults results = service.findFolders(folderId, folderView);

Currently, I am able to access the shared mailbox of a user account if I already know the address of the shared mailbox. However, if I know just the user account details (but not the shared mailboxes it has access to), how can I retrieve the list of shared mailboxes linked to this user account?

@cywan1998
Copy link

same question, do you find the answer? or any other solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants