TheJumpCloud / jcapi-python

21 stars 20 forks source link

Unable to get complete set of Database Attributes for an Application using the applications_get api #48

Open kodas-briozing opened 3 years ago

kodas-briozing commented 3 years ago

I want to get the "databaseAttributes" of a AWS SAML2 application using the JumpCloud api - applications_get by passing a particular application_id.

The response contains only 1 parameter - position.

{'position': 1}

But when the same application is queried via postman,a detailed response is received. GET - https://console.jumpcloud.com/api/applications/

"databaseAttributes": {
            "label": "USER ATTRIBUTES MAPPING:",
            "readOnly": false,
            "toggle": null,
            "tooltip": {
                "template": "Dynamic",
                "variables": {
                    "icon": "jc-info-circle",
                    "message": "(Optional) Configure any user-specific attributes to be sent to the service provider. The value specified must directly reflect the JumpCloud system user property name (e.g., email, firstname, lastname). See the Knowledge Base for exact JumpCloud property names."
                }
            },
            "type": "constantAttributes",
            "value": [
                {
                    "name": "https://aws.amazon.com/SAML/Attributes/Role",
                    "value": "SandboxDevelopers",
                    "required": false,
                    "visible": true,
                    "readOnly": false
                },
                {
                    "name": "https://aws.amazon.com/SAML/Attributes/Role",
                    "value": "SandboxAdministrators",
                    "required": false,
                    "visible": true,
                    "readOnly": false
                }
            ],
            "visible": true,
            "options": null,
            "dependsOnProperty": null,
            "mutable": true,
            "required": null,
            "position": 1
        },

Can some one please suggest a solution?

idosh9 commented 5 months ago

has this been solved?