nuxsmin / sysPass

Systems Password Manager
https://syspass.org
GNU General Public License v3.0
975 stars 208 forks source link

Custom Fields : API View #1388

Open sf32738 opened 5 years ago

sf32738 commented 5 years ago

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):

Additional context

nuxsmin commented 5 years ago

Hello, this feature will be available in next release.

Thanks for the feedback!

Regards

matejzero commented 5 years ago

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?

mahmoodsabir commented 5 years ago

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

mahmoodsabir commented 5 years ago

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...

matejzero commented 5 years ago

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

nuxsmin commented 5 years ago

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

Regards

simoesp82 commented 4 years ago

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

nuxsmin commented 3 years ago

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

Regards