Fetch Profiles

Profiles in the NFT management platform are used to define user rights rules.

Fetch All Profiles

URL

To fetch all the profiles available on your NFT Management Platform, use /profile.

GET - https://{{nmpUrl}}/users/profile

Return Payload

All profiles associated with your NFT Management Platform are returned.

[
    {
        "_id": "605c9a7e3ad5c229e7267b0b",
        "rights": [
            "certRead",
            "certCreate",
            "certPrint",
            "certDelete",
            "certRecover",
            "messageSend",
            "assetsUpload",
            "identityUpdate",
            "accountManage",
            "messageSetupAuto",
            "usersManage",
            "eventCreate",
            "admin",
            "reporting",
            "Admin",
            "smartContractSend"
        ],
        "name": "admin",
        "__v": 0,
        "id": "605c9a7e3ad5c229e7267b0b"
    },
    {
        "_id": "60780034ada574291f011f31",
        "rights": [
            "certRead"
        ],
        "name": "certRead",
        "__v": 0,
        "id": "60780034ada574291f011f31"
    },
    {
        "_id": "60780610aef63748431d3742",
        "rights": [
            "reporting"
        ],
        "name": "reporting",
        "__v": 0,
        "id": "60780610aef63748431d3742"
    },
    {
        "_id": "6569e0ec64906dd43e5f547c",
        "name": "Data Visualisation",
        "rights": [
            "reporting"
        ],
        "__v": 0,
        "id": "6569e0ec64906dd43e5f547c"
    },
    {
        "_id": "6569ea7164906dd43e5f76b3",
        "name": "Data Visualisation & CertRead",
        "rights": [
            "certRead",
            "reporting"
        ],
        "__v": 0,
        "id": "6569ea7164906dd43e5f76b3"
    },
    {
        "_id": "65bbb0d99c40d5391700ac4a",
        "name": "POC Repair/Event manager",
        "rights": [
            "certRead",
            "assetsUpload",
            "eventCreate"
        ],
        "__v": 0,
        "id": "65bbb0d99c40d5391700ac4a"
    },
    {
        "_id": "65ca23b5c784dd6e41c33667",
        "name": "test2",
        "rights": [
            "admin"
        ],
        "__v": 0,
        "id": "65ca23b5c784dd6e41c33667"
    }
]

Fetch Profile's Details

To fetch one specific profile, use /profile/:id.

URL

GET - https://{{nmpUrl}}/users/profile/:id

Return Payload

{
    "_id": "65ca23b5c784dd6e41c33667",
    "name": "test2",
    "rights": [
        "admin"
    ],
    "__v": 0,
    "id": "65ca23b5c784dd6e41c33667"
}