@Jack: I am looking for an index. This interface is what I was describing when I said I have to browse through every section.
@Zach: I was able to get it working in PowerShell, the problem is the UTF-8 encoding. I am just stripping it with Substring. Using curl in the Bash, I do not have to do any special manipulations other than managing differing json and csv returns.
@Tony: Is that your PowerShell script, or is there a SmarterMail PS repository somewhere? I would love to not reinvent the wheel, if at all possible. Specific to this example, what if I want to extract all of a domain's aliases: what is the search term for that?
Currently there is no list of all the calls in on a single page. Using the link above breaks the calls down to there areas.
I lament the lack of an index, as well as actual practical examples in the documentation. I do not want to sit for any period of time fuzzing my own server to determine what parameter syntax are needed for the various functions I want to use.
Ultimately, my intention is to extract a full list of all email addresses in use on the server, be they mailboxes, aliases, or mailing lists. That list will then be used to populate routing tables in border gateways. For this task, it looks like I need to do the following.
- Authenticate a system admin
- Enumerate domains
- Iterating through domains
- Discover domain admin
- Impersonate domain admin
- Export list of users
- Export list of aliases
This does not touch mailing lists, yet (not as important as I use another system for that functionality at this time.) Is my flow correct?
The comparable process in Exchange would be a Get-Mailbox command, then parsing of the EmailAddresses field of each record.
PS: I also forgot that I will need any throw-away email addresses set up by users, too.