Last modified: Jun 7, 2024

Creating and publishing API scheme in altinn Studio

This explaines how you can define a API scheme in Altinn

In Altinn Studio Resource admin, you can create resources to use as a basis for access control for services outside of the Altinn Platform.

Prerequisites

You need to have access to resource administration for your organization. See Getting started guide

Step 1 Create Resource

Log in to Altinn Studio

Create Resource

The ID given for resource will be the one used in Altinn API for checking access. This need to be globally unique

Create Resource

Resource Type

For api scheme resources, the type will be Api Scheme access resource.

Create Resource

Title

The title will be shown in Access Management and in service catalogues like data.altinn.no

You need to define the title in bokmål, nynorsk and english.

Create Resource

Description

The description will be shown in Access Management and in service catalogues like data.altinn.no

You need to define the description in bokmål, nynorsk and english.

Create Resource

Delegation description

If the resource should be able to be delegated as resource delegation you need to enable the delegation and set delegation description in bokmål, nynorsk and english.

Create Resource

Keywords

Keywords can be set for help. Currently not used but might be used for different service catalogues later

Create Resource

Status

The status of the API that the API scheme is pointing to

Create Resource

Scope

The scope that protects the API and is delegated.

Create Resource

Contact information

Contact information for the service. Might be presented in service cataloge on a later stage.

Create Resource

Create Policy

When resource is created you need to define the policy. The policy needs to contain a minimum of 1 rule.

Each rule contains of resource, subject and action

Resource

Define the resource for the rule

Create Resource

Action

Define the action for the rule

Create Resource

Subject

Define the subject for the role. You can choose amongst ER roles, Altinn Roles, and Access Packages(todo)

Create Resource

Publish

When you have finished setting the resource settings and policy you can publish. Before publish you need to set a new version ID and commit changes to the resource repository.

Create Resource

Verify

When the API Scheme is published you can delegate it from the Altinn Portal

Create Resource