You can pre-create developer accounts to provision their team association and API access before they access the {{site.dev_portal}}.
- To automatically create developers and send them an email to create a password, send a
POSTrequest to the/portals/{portalId}/developersendpoint: {% capture create-dev %}
{% konnect_api_request %} url: /v3/portals/$DEV_PORTAL_ID/developers method: POST status_code: 201 body: full_name: "Raina Sovani" email: "raina.sovani@example.com" status: "approved" send_notification_email: true {% endkonnect_api_request %}
{% endcapture %} {{create-dev | indent: 3}}
- Copy and export the developer ID:
export DEVELOPER_ID='YOUR DEVELOPER ID'- Add the developer to an existing team that has the correct roles for the APIs they need access to by sending a
POSTrequest to the/portals/{portalId}/teams/{teamId}/developersendpoint: {% capture add-dev-to-team %}
{% konnect_api_request %} url: /v3/portals/$DEV_PORTAL_ID/teams/$TEAM_ID/developers method: POST status_code: 201 body: id: "$DEVELOPER_ID" {% endkonnect_api_request %}
{% endcapture %} {{add-dev-to-team | indent: 3}}
{:.warning}
Logging in to {{site.dev_portal}}s:
- SSO: If a developer is created in a {{site.dev_portal}} with SSO configured, they must be able to use SSO to login if their email address is configured in the identity provider. After they log in, they will automatically approved.
- Basic auth: If a developer is created in a {{site.dev_portal}} with basic auth configured, they must be able to set their password. This can be done one of two ways:
send_notification_email: true: Developers can use the link in the email to set their password.send_notification_email: true: Developers can click Forgot password in the {{site.dev_portal}} UI to set a password.