ColdFusion Office 365 Access to an Exchange Distribution Group?

I am currently using cfexchangeConnection to connect to our connection outlook.office365.com.

My goal is to connect the user, find out which distribution group they are in (for example, Personnel, Participants, Clerks ...), and then send them to the corresponding web page depending on their group.

I watched and played with cfexchangeContact, but the best I could come up with was this person’s contact list.

We have a global address book throughout our company, but I have no idea how to access it.

Edit: The code I use to communicate with Exchange looks like this:

<cfexchangeConnection action="open" username ="#username#" password="#password#" server="outlook.office365.com" protocol="https" connection="myConnection" serverversion="2010"> 

I used the following code to try to access distribution groups through the global address book using this code:

 <cfexchangecontact required action = "get" name = "query identifier" optional connection = "connection ID"> 

Alas, this only gives me contacts, not the address book.

What would I like to get as a result, is the person authenticated through the cfexchangeConnection tag a member of one of our distribution groups / global address book group. So far, I'm thinking of adding another Exchange member by adding a distribution group as a contact, and then using the cfexchangeContact tag to find out if they are in the contact list of this new Exchange member.

+6
source share

Source: https://habr.com/ru/post/979655/


All Articles