okta.groups.read
Lists all Group rules for your org
Success
Forbidden
Too Many Requests
List all group rules example
[- {
- "type": "group_rule",
- "id": "0pr3f7zMZZHPgUoWO0g4",
- "status": "INACTIVE",
- "name": "Engineering group rule",
- "created": "2016-12-01T14:40:04.000Z",
- "lastUpdated": "2016-12-01T14:40:04.000Z",
- "conditions": {
- "people": {
- "users": {
- "exclude": [
- "00u22w79JPMEeeuLr0g4"
]
}, - "groups": {
- "exclude": [ ]
}
}, - "expression": {
- "value": "user.role==\"Engineer\"",
- "type": "urn:okta:expression:1.0"
}
}, - "actions": {
- "assignUserToGroups": {
- "groupIds": [
- "00gjitX9HqABSoqTB0g3"
]
}
}
}
]
okta.groups.manage
Creates a Group rule to dynamically add Users to the specified Group if they match the condition
Note: Group rules are created with the status set to
'INACTIVE'
.
object (GroupRuleAction) Defines which users and groups to assign | |||||||||||||
object (GroupRuleConditions) Defines group rule conditions | |||||||||||||
| |||||||||||||
name | string [ 1 .. 50 ] characters Name of the Group rule | ||||||||||||
type | string Value: "group_rule" |
Success
Bad Request
Forbidden
Too Many Requests
{- "type": "group_rule",
- "name": "Engineering group rule",
- "conditions": {
- "people": {
- "users": {
- "exclude": [
- "00u22w79JPMEeeuLr0g4"
]
}, - "groups": {
- "exclude": [ ]
}
}, - "expression": {
- "value": "user.role==\"Engineer\"",
- "type": "urn:okta:expression:1.0"
}
}, - "actions": {
- "assignUserToGroups": {
- "groupIds": [
- "00gjitX9HqABSoqTB0g3"
]
}
}
}
Example of a group rule
{- "type": "group_rule",
- "id": "0pr3f7zMZZHPgUoWO0g4",
- "status": "INACTIVE",
- "name": "Engineering group rule",
- "created": "2016-12-01T14:40:04.000Z",
- "lastUpdated": "2016-12-01T14:40:04.000Z",
- "conditions": {
- "people": {
- "users": {
- "exclude": [
- "00u22w79JPMEeeuLr0g4"
]
}, - "groups": {
- "exclude": [ ]
}
}, - "expression": {
- "value": "user.role==\"Engineer\"",
- "type": "urn:okta:expression:1.0"
}
}, - "actions": {
- "assignUserToGroups": {
- "groupIds": [
- "00gjitX9HqABSoqTB0g3"
]
}
}
}
okta.groups.read
Retrieves a specific Group rule by ID from your org
Success
Forbidden
Not Found
Too Many Requests
Example of a group rule
{- "type": "group_rule",
- "id": "0pr3f7zMZZHPgUoWO0g4",
- "status": "INACTIVE",
- "name": "Engineering group rule",
- "created": "2016-12-01T14:40:04.000Z",
- "lastUpdated": "2016-12-01T14:40:04.000Z",
- "conditions": {
- "people": {
- "users": {
- "exclude": [
- "00u22w79JPMEeeuLr0g4"
]
}, - "groups": {
- "exclude": [ ]
}
}, - "expression": {
- "value": "user.role==\"Engineer\"",
- "type": "urn:okta:expression:1.0"
}
}, - "actions": {
- "assignUserToGroups": {
- "groupIds": [
- "00gjitX9HqABSoqTB0g3"
]
}
}
}
okta.groups.manage
Replaces a Group rule
Notes: You only can update rules with a Group whose status is set to
'INACTIVE'
.You currently can't update the
action
section.
object (GroupRuleAction) Defines which users and groups to assign | |||||||||||||
object (GroupRuleConditions) Defines group rule conditions | |||||||||||||
| |||||||||||||
name | string [ 1 .. 50 ] characters Name of the Group rule | ||||||||||||
status | string (GroupRuleStatus) Status of group rule | ||||||||||||
type | string Type to indicate a Group rule operation. Only |
Success
Bad Request
Forbidden
Not Found
Too Many Requests
Example of a group rule
{- "type": "group_rule",
- "id": "0pr3f7zMZZHPgUoWO0g4",
- "status": "INACTIVE",
- "name": "Engineering group rule",
- "created": "2016-12-01T14:40:04.000Z",
- "lastUpdated": "2016-12-01T14:40:04.000Z",
- "conditions": {
- "people": {
- "users": {
- "exclude": [
- "00u22w79JPMEeeuLr0g4"
]
}, - "groups": {
- "exclude": [ ]
}
}, - "expression": {
- "value": "user.role==\"Engineer\"",
- "type": "urn:okta:expression:1.0"
}
}, - "actions": {
- "assignUserToGroups": {
- "groupIds": [
- "00gjitX9HqABSoqTB0g3"
]
}
}
}
{- "actions": {
- "assignUserToGroups": {
- "groupIds": [
- "string"
]
}
}, - "conditions": {
- "expression": {
- "type": "string",
- "value": "user.role==\\\"Engineer\\\""
}, - "people": {
- "groups": {
- "exclude": [
- "string"
]
}, - "users": {
- "exclude": [
- "string"
]
}
}
}, - "created": "2019-08-24T14:15:22Z",
- "id": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "name": "string",
- "status": "ACTIVE",
- "type": "string"
}
okta.groups.manage
Deletes a specific group rule by groupRuleId
Accepted
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.groups.manage
Activates a specific Group rule by ID from your org
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.groups.manage
Deactivates a specific Group rule by ID from your org
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}