Skip to content

[Bug] AccessProfile model missing accessModelMetadata field in Python SDK v1.3.8 #109

@ChrisNordnet

Description

@ChrisNordnet

Describe the bug
The SailPoint Python SDK v1.3.8 is missing the accessModelMetadata field in the AccessProfile model. The field is returned by the API and present in raw HTTP responses.
To Reproduce
Steps to reproduce the behavior:

  1. Install SailPoint Python SDK v1.3.8 using pip install sailpoint
  2. Create a Python script that calls AccessProfilesApi.get_access_profile(id='**youridhere**')
  3. Attempt to access profile.access_model_metadata on the returned AccessProfile object
  4. See error: AttributeError - 'AccessProfile' object has no attribute 'access_model_metadata'

Expected behavior
The AccessProfile object should include an access_model_metadata field (aliased from accessModelMetadata in the JSON response) containing custom attributes and values, matching the behavior of the PowerShell SDK.

Actual behavior
The access_model_metadata field is not accessible on the parsed AccessProfile object. When checking the raw HTTP response using get_access_profile_without_preload_content(), the accessModelMetadata field is present in the JSON.

Screenshots
(I will include the JSON schema here instead)

=== Python SDK Output ===
`Command: api_instance.get_access_profile_without_preload_content()

{
    "id": "<access-profile-id>",
    "name": "Sample Access Profile Name",
    "description": "Sample access profile description",
    "created": "2025-05-22T09:15:24.097906Z",
    "modified": "2025-07-08T13:00:31.093518Z",
    "enabled": true,
    "owner": {
        "type": "IDENTITY",
        "id": "<owner-id>",
        "name": "Sample Owner"
    },
    "source": {
        "id": "<source-id>",
        "type": "SOURCE",
        "name": "Sample Source"
    },
    "entitlements": [
        {
            "type": "ENTITLEMENT",
            "id": "<entitlement-id>",
            "name": "Sample Entitlement"
        }
    ],
    "requestable": true,
    "accessRequestConfig": {
        "commentsRequired": true,
        "denialCommentsRequired": false,
        "approvalSchemes": [
            {
                "approverType": "MANAGER",
                "approverId": null
            }
        ],
        "reauthorizationRequired": false
    },
    "revocationRequestConfig": {
        "approvalSchemes": []
    },
    "segments": [],
    "accessModelMetadata": {
        "attributes": [
            {
                "key": "sampleAttributeKey",
                "name": "SampleAttribute",
                "multiselect": false,
                "status": "active",
                "type": "custom",
                "objectTypes": [
                    "accessProfile"
                ],
                "description": "Sample attribute description",
                "values": [
                    {
                        "value": "true",
                        "name": "True",
                        "status": "active"
                    }
                ]
            }
        ]
    },
    "provisioningCriteria": null,
    "additionalOwners": []
}`
`=== PowerShell SDK Output ===                                                                      
Command: Get-V2025AccessProfile -Id '<access-profile-id>' | ConvertTo-Json -Depth 10

{
  "id": "<access-profile-id>",
  "name": "Sample Access Profile Name",
  "description": "Sample access profile description",
  "created": "2025-05-22T09:15:24.097906Z",
  "modified": "2025-07-08T13:00:31.093518Z",
  "enabled": true,
  "owner": {
    "type": "IDENTITY",
    "id": "<owner-id>",
    "name": "Sample Owner"
  },
  "source": {
    "id": "<source-id>",
    "type": "SOURCE",
    "name": "Sample Source"
  },
  "entitlements": [
    {
      "id": "<entitlement-id>",
      "type": "ENTITLEMENT",
      "name": "Sample Entitlement"
    }
  ],
  "requestable": true,
  "accessRequestConfig": {
    "commentsRequired": true,
    "denialCommentsRequired": false,
    "approvalSchemes": [
      {
        "approverType": "MANAGER",
        "approverId": null
      }
    ],
    "reauthorizationRequired": false
  },
  "revocationRequestConfig": {
    "approvalSchemes": []
  },
  "segments": [],
  "accessModelMetadata": {
    "attributes": [
      {
        "key": "sampleAttributeKey",
        "name": "SampleAttribute",
        "multiselect": false,
        "status": "active",
        "type": "custom",
        "objectTypes": [
          "accessProfile"
        ],
        "description": "Sample attribute description",
        "values": [
          {
            "value": "true",
            "name": "True",
            "status": "active"
          }
        ]
      }
    ]
  },
  "provisioningCriteria": null,
  "additionalOwners": []
}`

Operating System (please complete the following information):

  • OS: Windows 11
  • CLI Environment: PowerShell
  • Version: Python SDK 1.3.8

Browser (please complete the following information):

  • Browser: N/A
  • Version: N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions