Checking accounts from command line (ag-tool)

Jolla Care -


The following commands can possibly help in investigating problems related to accounts on Sailfish OS.


From Sailfish OS version 4.0.1 onwards, the commands below must be executed in privileged mode. 
For this, you will need to enable the Developer mode.


1) List existing accounts and their account IDs

devel-su -p ag-tool list-accounts


ID Provider Name -- -------- ---- 24 google 22 email GMX-test 21 jolla yyyyyyyy 19 sailfisheas IJV 18 jabber 17 sailfisheas-oauth

The account IDs are numerals. In the example above, they range from 17 to 24. They are needed for the following commands.


2) List all settings of an account (ID)

devel-su -p ag-tool list-settings <accountID>

devel-su -p ag-tool list-settings 18
enabled = true Jolla/segregated_credentials/Jolla = 12 CredentialsId = 12 name = default_credentials_username = CredentialsNeedUpdate = false jabber CredentialsId = 12 telepathy/param-resource = Jolla telepathy/manager = gabble telepathy/protocol = jabber telepathy/param-account = telepathy/param-ignore-ssl-errors = false telepathy/HasBeenOnline = true telepathy/mc-account-name = gabble/jabber/jabber_13 telepathy/NormalizedName = enabled = true telepathy/Nickname = auth/mechanism = password telepathy/param-port = 5222 auth/method = password telepathy/ConnectAutomatically = true telepathy/AutomaticPresence = 0;;;


3) Change the authentication method

devel-su -p ag-tool update-service <account-ID> email int:imap4/authentication=1

The command above is an example to change that authentication method to "1" which is "Login".


4) Delete an account (ID)

devel-su -p ag-tool delete-account <accountID>


5) Delete all accounts

devel-su -p ag-tool delete-account all


Have more questions? Submit a request
Powered by Zendesk