sysPass icon indicating copy to clipboard operation
sysPass copied to clipboard

Custom Fields : API View

Open sf32738 opened this issue 6 years ago • 8 comments

sysPass Version 3.1-RC4 (310.19052503)

Describe the question Custom fields of any type are not accessible via API calls? ie. If a custom field is associated with an account, and populated, that data is not returned when the account is viewed.

{
    "jsonrpc": "2.0",
    "result": {
        "itemId": 1,
        "result": {
            "id": 1,
            "userId": 2,
            "userGroupId": 1,
            "userEditId": 2,
            "name": "test-server-01",
            "clientId": 1,
            "categoryId": 1,
            "login": "sysadmin",
            "url": "192.168.11.20",
            "pass": "",
            "key": "",
            "notes": "",
            "otherUserEdit": "0",
            "otherUserGroupEdit": "0",
            "dateAdd": "2019-07-08 15:00:32",
            "dateEdit": "2019-07-08 15:00:39",
            "countView": 3,
            "countDecrypt": 0,
            "isPrivate": "0",
            "isPrivateGroup": "0",
            "passDate": 1562598032,
            "passDateChange": null,
            "parentId": 0,
            "categoryName": "Server Passwords",
            "clientName": "{{redacted}}",
            "userGroupName": "Admins",
            "userName": "{{redacted}}",
            "userLogin": "{{redacted}}",
            "userEditName": "{{redacted}}",
            "userEditLogin": "{{redacted}}",
            "publicLinkHash": null
        },
        "resultCode": 0,
        "resultMessage": null,
        "count": null
    },
    "id": 1562598602
}

Screenshots Not Needed

Platform (please complete the following information):

  • OS: Linux - Ubuntu 18.04.x - Docker Container
  • Browser: Any

Additional context

sf32738 avatar Jul 08 '19 15:07 sf32738

Hello, this feature will be available in next release.

Thanks for the feedback!

Regards

nuxsmin avatar Jul 20 '19 19:07 nuxsmin

We are writing an exporter from Syspass to KeePass format for local storage and we hit the same problem. By next release, do you mean 3.2?

matejzero avatar Aug 21 '19 08:08 matejzero

Shiit, I've built my script and expected the API to support the custom field

mahmoodsabir avatar Aug 29 '19 10:08 mahmoodsabir

Shiit, I've built my script and expected the API to support the custom field

Now I'll just use "Notes" for the same purpose instead...

mahmoodsabir avatar Aug 29 '19 11:08 mahmoodsabir

I can't use it in my case, since we store sensitive info in custom fields and want to have them encrypted in DB.

matejzero avatar Aug 29 '19 11:08 matejzero

@krnull @matejzero it will be available in next minor release.

Regards

nuxsmin avatar Aug 29 '19 13:08 nuxsmin

does this also affects editing/updating accounts on custom fields values trough API ?

simoesp82 avatar Nov 13 '20 17:11 simoesp82

@simoesp82 unfortunately not, it will only display the custom fields, though it would be possible to implement in future releases.

Regards

nuxsmin avatar Dec 03 '20 20:12 nuxsmin