pub struct Groups {
    pub client: Client,
}

Fields

client: Client

Implementations

List Groups.

This function performs a GET to the /api/v1/groups endpoint.

Enumerates groups in your organization with pagination. A subset of groups can be returned that match a supported filter expression or query.

Parameters:

  • q: &str – Searches the name property of groups for matching value.
  • search: &str – Filter expression for groups.
  • after: &str – Specifies the pagination cursor for the next page of groups.
  • limit: i64 – Specifies the number of group results in a page.
  • expand: &str – If specified, it causes additional metadata to be included in the response.

List Groups.

This function performs a GET to the /api/v1/groups endpoint.

As opposed to list, this function returns all the pages of the request at once.

Enumerates groups in your organization with pagination. A subset of groups can be returned that match a supported filter expression or query.

Add Group.

This function performs a POST to the /api/v1/groups endpoint.

Adds a new group with OKTA_GROUP type to your organization.

List Group Rules.

This function performs a GET to the /api/v1/groups/rules endpoint.

Lists all group rules for your organization.

Parameters:

  • limit: i64 – Specifies the number of rule results in a page.
  • after: &str – Specifies the pagination cursor for the next page of rules.
  • search: &str – Specifies the keyword to search fules for.
  • expand: &str – If specified as groupIdToGroupNameMap, then show group names.

List Group Rules.

This function performs a GET to the /api/v1/groups/rules endpoint.

As opposed to list_rules, this function returns all the pages of the request at once.

Lists all group rules for your organization.

Create Group Rule.

This function performs a POST to the /api/v1/groups/rules endpoint.

Creates a group rule to dynamically add users to the specified group if they match the condition

Get Group Rule.

This function performs a GET to the /api/v1/groups/rules/{ruleId} endpoint.

Fetches a specific group rule by id from your organization

Parameters:

  • rule_id: &str
  • expand: &str

This function performs a PUT to the /api/v1/groups/rules/{ruleId} endpoint.

Updates a group rule. Only INACTIVE rules can be updated.

Parameters:

  • rule_id: &str

Delete a group Rule.

This function performs a DELETE to the /api/v1/groups/rules/{ruleId} endpoint.

Removes a specific group rule by id from your organization

Parameters:

  • rule_id: &str
  • remove_users: bool – Indicates whether to keep or remove users from groups assigned by this rule.

Activate a group Rule.

This function performs a POST to the /api/v1/groups/rules/{ruleId}/lifecycle/activate endpoint.

Activates a specific group rule by id from your organization

Parameters:

  • rule_id: &str

Deactivate a group Rule.

This function performs a POST to the /api/v1/groups/rules/{ruleId}/lifecycle/deactivate endpoint.

Deactivates a specific group rule by id from your organization

Parameters:

  • rule_id: &str

List Group Rules.

This function performs a GET to the /api/v1/groups/{groupId} endpoint.

Lists all group rules for your organization.

Parameters:

  • group_id: &str

Update Group.

This function performs a PUT to the /api/v1/groups/{groupId} endpoint.

Updates the profile for a group with OKTA_GROUP type from your organization.

Parameters:

  • group_id: &str

Remove Group.

This function performs a DELETE to the /api/v1/groups/{groupId} endpoint.

Removes a group with OKTA_GROUP type from your organization.

Parameters:

  • group_id: &str

List Assigned Applications.

This function performs a GET to the /api/v1/groups/{groupId}/apps endpoint.

Enumerates all applications that are assigned to a group.

Parameters:

  • group_id: &str
  • after: &str – Specifies the pagination cursor for the next page of apps.
  • limit: i64 – Specifies the number of app results for a page.

List Assigned Applications.

This function performs a GET to the /api/v1/groups/{groupId}/apps endpoint.

As opposed to list_assigned_applications_for, this function returns all the pages of the request at once.

Enumerates all applications that are assigned to a group.

This function performs a GET to the /api/v1/groups/{groupId}/roles endpoint.

Success

Parameters:

  • group_id: &str
  • expand: &str

This function performs a GET to the /api/v1/groups/{groupId}/roles endpoint.

As opposed to list_assigned_roles, this function returns all the pages of the request at once.

Success

This function performs a POST to the /api/v1/groups/{groupId}/roles endpoint.

Assigns a Role to a Group

Parameters:

  • group_id: &str
  • disable_notifications: &str

This function performs a GET to the /api/v1/groups/{groupId}/roles/{roleId} endpoint.

Success

Parameters:

  • group_id: &str
  • role_id: &str

This function performs a DELETE to the /api/v1/groups/{groupId}/roles/{roleId} endpoint.

Unassigns a Role from a Group

Parameters:

  • group_id: &str
  • role_id: &str

This function performs a GET to the /api/v1/groups/{groupId}/roles/{roleId}/targets/catalog/apps endpoint.

Lists all App targets for an APP_ADMIN Role assigned to a Group. This methods return list may include full Applications or Instances. The response for an instance will have an ID value, while Application will not have an ID.

Parameters:

  • group_id: &str
  • role_id: &str
  • after: &str
  • limit: i64

This function performs a GET to the /api/v1/groups/{groupId}/roles/{roleId}/targets/catalog/apps endpoint.

As opposed to list_application_targets_for_administrator_role, this function returns all the pages of the request at once.

Lists all App targets for an APP_ADMIN Role assigned to a Group. This methods return list may include full Applications or Instances. The response for an instance will have an ID value, while Application will not have an ID.

This function performs a PUT to the /api/v1/groups/{groupId}/roles/{roleId}/targets/catalog/apps/{appName} endpoint.

Success

Parameters:

  • group_id: &str
  • role_id: &str
  • app_name: &str

This function performs a DELETE to the /api/v1/groups/{groupId}/roles/{roleId}/targets/catalog/apps/{appName} endpoint.

Success

Parameters:

  • group_id: &str
  • role_id: &str
  • app_name: &str

Add App Instance Target to App Administrator Role given to a Group.

This function performs a PUT to the /api/v1/groups/{groupId}/roles/{roleId}/targets/catalog/apps/{appName}/{applicationId} endpoint.

Add App Instance Target to App Administrator Role given to a Group

Parameters:

  • group_id: &str
  • role_id: &str
  • app_name: &str
  • application_id: &str

Remove App Instance Target to App Administrator Role given to a Group.

This function performs a DELETE to the /api/v1/groups/{groupId}/roles/{roleId}/targets/catalog/apps/{appName}/{applicationId} endpoint.

Remove App Instance Target to App Administrator Role given to a Group

Parameters:

  • group_id: &str
  • role_id: &str
  • app_name: &str
  • application_id: &str

This function performs a GET to the /api/v1/groups/{groupId}/roles/{roleId}/targets/groups endpoint.

Success

Parameters:

  • group_id: &str
  • role_id: &str
  • after: &str
  • limit: i64

This function performs a GET to the /api/v1/groups/{groupId}/roles/{roleId}/targets/groups endpoint.

As opposed to list_targets_for_role, this function returns all the pages of the request at once.

Success

This function performs a PUT to the /api/v1/groups/{groupId}/roles/{roleId}/targets/groups/{targetGroupId} endpoint.

Parameters:

  • group_id: &str
  • role_id: &str
  • target_group_id: &str

This function performs a DELETE to the /api/v1/groups/{groupId}/roles/{roleId}/targets/groups/{targetGroupId} endpoint.

Parameters:

  • group_id: &str
  • role_id: &str
  • target_group_id: &str

List Group Members.

This function performs a GET to the /api/v1/groups/{groupId}/users endpoint.

Enumerates all users that are a member of a group.

Parameters:

  • group_id: &str
  • after: &str – Specifies the pagination cursor for the next page of users.
  • limit: i64 – Specifies the number of user results in a page.

List Group Members.

This function performs a GET to the /api/v1/groups/{groupId}/users endpoint.

As opposed to list_users, this function returns all the pages of the request at once.

Enumerates all users that are a member of a group.

Add User to Group.

This function performs a PUT to the /api/v1/groups/{groupId}/users/{userId} endpoint.

Adds a user to a group with ‘OKTA_GROUP’ type.

Parameters:

  • group_id: &str
  • user_id: &str

Remove User from Group.

This function performs a DELETE to the /api/v1/groups/{groupId}/users/{userId} endpoint.

Removes a user from a group with ‘OKTA_GROUP’ type.

Parameters:

  • group_id: &str
  • user_id: &str

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more