assign_user_to_application_with_role
Assign an active Okta user to an application and set a specific role or profile attributes, including AWS IAM roles for SAML-based access.
Instructions
Assign a user to an application with a specific role or profile attributes.
Only ACTIVE users can be assigned to applications.
This is particularly useful for applications like AWS where you need to assign users to specific IAM roles imported from AWS via SAML.
Args: app_id: The Okta application ID user_id: The Okta user ID or login email role: The role to assign (e.g., for AWS: "arn:aws:iam::123456789012:role/AdminRole,...") profile: Dict of additional profile attributes to set for this app assignment
Returns: Dict with assignment details including the assigned role
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>",
"user_id": "<user_id>"
},
"name": "assign_user_to_application_with_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| app_id | Yes | ||
| profile | No | ||
| user_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |