Get folder permissions in a user's mailbox - powershell

Is it possible to get a list of who has permissions to a folder in a user's mailbox in exchange 2007?
As far as I know it is not possible via exchange management shell. It is possible however in E2k10+ using the Get-MailboxFolderPermission. This is not available in E2k07.
If it is not possible in powershell, is there any other softwares available that can accomplish this.

You can use the EWS managed API with PowerShell to get the folder delegates for the mailbox. Glen Scales has some excellent articles on using this API with PowerShell, including one on getting delegate informtion:
http://gsexdev.blogspot.com/2012/03/ews-managed-api-and-powershell-how-to.html#!/2012/03/ews-managed-api-and-powershell-how-to.html

I just tried on Exchange 2007, and it works:
$permissions = Get-Mailbox $first.$last | Get-MailboxPermissions

Related

Fetch Mails From MS-Exchange Using Graph API

Can someone help me out that how I can fetch mails from Exchange User's mailbox using Microsoft Graph API?
Graph API is working fine for the online exchange users (O365) not for offline users (local users), but there is another problem too. Graph API provides Rest APIs by using which we can access each mailbox individually which will become very server loaded work if more than 1000K mailbox need to be scanned one by one and also a time taking process.
I want to fetch scan all user's mailbox at once both offline and online. Just like Microsoft Powershell do.
Is there any way to do so?
Any help will be deeply appreciated.
Thanks

Powershell script to create Contacts inside Exchange account?

Is it possible with Powershell to create Contacts inside a Exchange account?
Im not talking about creating a Contact in Active Directory, but a contact in the Exchange account there will be visable by Outlook, Webmail, and Mobile sync.
The reason for this, is that a customer wants a easy way to deploy some static adresses, without the use of using contacts in the Global Address list.
You can do this using the EWS Managed API library with Powershell for this, I have a module on GitHub which should work okay https://github.com/gscales/Powershell-Scripts/tree/master/EWSContacts
Cheers
Glen

Use Powershell to list all mailbox users contacts from their contact folder with all attributes

I am on Office 365 and I (Admin of the site) have to run a query that takes a users mailbox (e. g: 'john.doe#example.com') and lists all of its contacts from the contact folder with all available attributes like name, email-address and so on. After searching heavily with Google and co. I found nothing regarding powershell handling contacts except importing and exporting. Is there a way?
You need to use an API like Exchange Web Services to access that level of information. You can use the EWS Managed API from Powershell. As it turns out, Glen Scales has a good write-up on exporting contacts that way.

How to manage office 365 accounts in windows azure web site

I'd like to deploy a Office 365/Exchange Online management portal in the WAWS(Windows Azure WebSite) which could create new user/group/mailbox or change some property of specific user, etc. Is it possible to deploy this kind of web application in the WAWS environment? Should I call PowerShell and Office365 cmdlet in the ASP.NET environment? Or there are any better way to do this?
As the #Matt alludes to in his comment, there is already a web-based management portal for both of these. However, since you ask this question, I'm going to assume that you want additional functionality/customization.
The short answer is yes, you can.
User accounts in Office 365 are, behind the scenes, accounts in Azure Active Directory. So, for creating users, contacts, security groups and adding licenses, you will need to use the Azure Active Directory Graph API:
Getting Started With Windows Azure Active Directory Graph
For managing Exchange Online, you will probably want to use the Exchange Web Services Managed API 2.0. You'll probably only need this if you need to create distribution groups or manage individual users' contact folders (mailboxes for users get created when you assign an Exchange license from Azure Active Directory).
Get started with EWS Managed API client applications
Update: the Office 365 APIs were recently announced, and are now in Preview. They are a RESTful API, which can be used to manage (for now), mail, contacts and calendar items. Depending on your use case, this may be easier to deal with than the EWS Managed API 2.0.
Using the Mail, Calendar, and Contact REST APIs to work with emails, calendar items, and contacts

VBA: Current Windows logged on user's exchange email address

I have a MS Access 2003 application where I need the current Windows logged on user's exchange email address.
Do I need to query Active Directory to do this or is there a simpler way?
We have different domains in our organization and querying AD would be cumbersome.
Thanks,
Bruno
You might be able to retrieve this using the Environment variables via VBA.
http://vlaurie.com/computers2/Articles/environment.htm
Environ Function code samples for VBA
For example if you know your users login to the system as 'firstname.lastname#exchange.com' the Environ will give you 'FirstName.LastName', then you might be able to add your exchange email at the end.