---
title: "Get App Registration Granted Scopes"
url: "https://nov18-dev.movespot.fyi/apis/portal-registrations-2/versions/c62d6d7d-031a-4118-beb1-db6b32c22820/operations/get-application-registration-granted-scopes"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/portal-registrations-2/versions/c62d6d7d-031a-4118-beb1-db6b32c22820.md

# Get App Registration Granted Scopes

`GET` `/api/v2/applications/{applicationId}/registrations/{registrationId}/granted-scopes`

Operation ID: `get-application-registration-granted-scopes`

Retrieves the granted scopes of a specified product registration directly from the IDP for an application. Will return 409 if this feature is not supported by the application.

## Path parameters

- `applicationId` (string, uuid, required) - Id of the targeted application
- `registrationId` (string, uuid, required) - Contains a unique identifier used by the Portal API for this resource.

## Responses

- `200` - Get granted scopes response.
- `401` - Unauthorized
- `404` - Not Found
- `422` - Unprocessable Content

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Portal Registrations
  version: 2.0.0
paths:
  /api/v2/applications/{applicationId}/registrations/{registrationId}/granted-scopes:
    get:
      operationId: get-application-registration-granted-scopes
      summary: Get App Registration Granted Scopes
      description: >
        Retrieves the granted scopes of a specified product registration
        directly from the IDP for an application.

        Will return 409 if this feature is not supported by the application.
      parameters:
        - $ref: "#/components/parameters/ApplicationId"
        - $ref: "#/components/parameters/RegistrationId"
      responses:
        "200":
          $ref: "#/components/responses/GetGrantedScopes"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "404":
          $ref: "#/components/responses/NotFound"
        "422":
          $ref: "#/components/responses/UnprocessableContent"
      security:
        - portalAccessToken: []
      tags:
        - registrations
security:
  - portalAccessToken: []
components:
  parameters:
    ApplicationId:
      name: applicationId
      in: path
      required: true
      description: Id of the targeted application
      schema:
        type: string
        format: uuid
    RegistrationId:
      name: registrationId
      in: path
      required: true
      description: Contains a unique identifier used by the Portal API for this resource.
      schema:
        type: string
        format: uuid
  responses:
    GetGrantedScopes:
      description: Get granted scopes response.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/GetGrantedScopesResponse"
    Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/UnauthorizedError"
          examples:
            UnauthorizedExample:
              $ref: "#/components/examples/UnauthorizedExample"
    NotFound:
      description: Not Found
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/NotFoundError"
          examples:
            NotFoundExample:
              $ref: "#/components/examples/NotFoundExample"
    UnprocessableContent:
      description: Unprocessable Content
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/UnprocessableContentError"
          examples:
            UnprocessableContentExample:
              $ref: "#/components/examples/UnprocessableContentExample"
  schemas:
    GetGrantedScopesResponse:
      type: object
      properties:
        scopes:
          $ref: "#/components/schemas/RefreshedGrantedScopes"
      additionalProperties: false
      required:
        - scopes
    UnauthorizedError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 401
            title:
              example: Unauthorized
            type:
              example: https://httpstatuses.com/401
            instance:
              example: kong:trace:1234567890
            detail:
              example: Invalid credentials
    NotFoundError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 404
            title:
              example: Not Found
            type:
              example: https://httpstatuses.com/404
            instance:
              example: kong:trace:1234567890
            detail:
              example: Not found
    UnprocessableContentError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 422
            title:
              example: Unprocessable Content
            type:
              example: https://httpstatuses.com/422
            instance:
              example: kong:trace:1234567891
            detail:
              example: Unprocessable Content
    RefreshedGrantedScopes:
      description: List of granted scopes, directly updated from the IDP
      type: array
      items:
        type: string
    BaseError:
      description: standard error
      type: object
      properties:
        status:
          description: >
            The HTTP status code of the error. Useful when passing the response

            body to child properties in a frontend UI. Must be returned as an
            integer.
          type: integer
          readOnly: true
        title:
          description: |
            A short, human-readable summary of the problem. It should not
            change between occurences of a problem, except for localization.
            Should be provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
        type:
          description: The error type.
          type: string
          readOnly: true
        instance:
          description: |
            Used to return the correlation ID back to the user, in the format
            kong:trace:<correlation_id>. This helps us find the relevant logs
            when a customer reports an issue.
          type: string
          readOnly: true
        detail:
          description: >
            A human readable explanation specific to this occurence of the
            problem.

            This field may contain request/entity data to help the user
            understand

            what went wrong. Enclose variable values in square brackets. Should
            be

            provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
      required:
        - status
        - title
        - instance
        - detail
      title: Error
  examples:
    UnauthorizedExample:
      value:
        status: 401
        title: Unauthorized
        instance: kong:trace:8347343766220159418
        detail: Unauthorized
    NotFoundExample:
      value:
        status: 404
        title: Not Found
        instance: kong:trace:6816496025408232265
        detail: Not Found
    UnprocessableContentExample:
      value:
        status: 422
        title: Unprocessable Content
        instance: kong:trace:8347343766220159419
        detail: The requested operation cannot be performed with the provided data
  securitySchemes:
    portalAccessToken:
      type: apiKey
      in: cookie
      name: portalaccesstoken
      description: >
        The Developer portal cookie is meant to be used by the Developer API to
        authenticate with.
```
