Is it possible to access and upgrade Exchange accounts?

In my project, I need to access the Exchange accounts on the device in order to change them.

I need to do this programmatically, inside my application.

I searched around, but it doesn't seem like there is a way to do this.

Please help or suggest?


EDIT EDIT

To be more specific, I need: lists all the email accounts on the device and allows the user to change the settings for Exchange accounts:

* server address

* server port number

* SSL (on / off)

* accept all SSL certificates (on / off)

* account password

+7
android
source share
3 answers

You cannot change the permissions / settings of another Exchange account (it gives you a security error). You can create your own sharing account, which will be included in your sharing accounts as yourAppName ..

+1
source share

Take a look at AccountManager ( http://developer.android.com/reference/android/accounts/AccountManager.html )

You should do something like this:

AccountManager accountManager = AccountManager.get(context); Account[] accountList = accountManager.getAccounts(); for(Account account : accountList){ accountManager.getUserData(account, AccountManager.KEY_USERDATA); accountManager.setUserData(account, AccountManager.KEY_USERDATA, "data"); } 
+1
source share

Powershell is probably the tool I would like to use for this, but from devices it is difficult. Tools such as AccountManager should come to terms with this because under the hood, they probably use Remote Powershell scripts. The alternatives I can think of are as follows:

I personally already had web services located inside the domain that my application used anyway (the data source was in the domain), so I placed my mailbox and AD user management service next to them, then the mobile applications made simple calls, such as CreateUser, EnableMailbox, CreateMailEnabledUser ...

-one
source share

All Articles