Get all Identity Mappings by Provider Name

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Get all identity mappings for an OIDC configuration.

Since: Artifactory 7.x.x

Security: Requires a valid admin token

Usage: GET /access/api/v1/oidc/{provider_name}/identity_mappings/

Produces: text/plain

Sample Usage

curl -X GET 'http://sample.jfrog.io/access/api/v1/oidc/ciconnect/identity_mappings/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer cmVmdmI0'

[
    {
        "name": "idmapciconnect",
        "description": "",
        "claims": {
            "name": "github-repo-read",
            "claims": {
                "sub": "repo:mosheya/access-oidc-poc:ref:refs/heads/main",
                "workflow_ref": "mosheya/access-oidc-poc/.github/workflows/job.yaml@refs/heads/main"
            },
            "provider_name": "github-oidc",
            "token_spec": {
                "username": "moshey",
                "scope": "applied-permissions/user",
                "audience": [
                    "jfrt@service_id"
                ],
                "expires_in": 3600
            }
        },
        "token_spec": {
            "username": "admconnect",
            "scope": "applied-permissions/admin",
            "audience": "*@*",
            "expires_in": 60
        },
        "priority": 1
    },
    {
        "name": "zmap",
        "description": "",
        "claims": {
            "name": "github-repo-read",
            "claims": {
                "sub": "repo:humpty/access-oidc-poc:ref:refs/heads/main",
                "workflow_ref": "humpty/access-oidc-poc/.github/workflows/job.yaml@refs/heads/main"
            },
            "provider_name": "github-oidc",
            "token_spec": {
                "username": "humpty",
                "scope": "applied-permissions/user",
                "audience": [
                    "jfrt@service_id"
                ],
                "expires_in": 3600
            }
        },
        "token_spec": {
            "username": "humpty",
            "scope": "applied-permissions/admin",
            "audience": "*@*",
            "expires_in": 60
        },
        "priority": 2
    }
]