list_application_available_roles
Retrieve the roles available for assignment on an Okta application by app ID, including imported AWS IAM roles and configured SAML role options.
Instructions
List all available/importable roles defined for an application.
For AWS apps, this returns all IAM roles that have been imported from AWS into Okta. For other SAML apps, this returns the role options configured in the app settings. These are the roles you can assign to users.
Args: app_id: The Okta application ID
Returns: Dict containing available roles that can be assigned to users
Example for AWS app: { "available_roles": [ "arn:aws:iam::123456789012:role/AdminRole,arn:aws:iam::123456789012:saml-provider/Okta", "arn:aws:iam::123456789012:role/DeveloperRole,arn:aws:iam::123456789012:saml-provider/Okta", "arn:aws:iam::123456789012:role/ReadOnlyRole,arn:aws:iam::123456789012:saml-provider/Okta" ], "role_count": 3, "app_name": "AWS Account", "aws_account_id": "123456789012" }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>"
},
"name": "list_application_available_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |