Search Groups

Search Office 365 for a group by property values. Supported search operations include Exact Match and Starts With. An Exact Match search returns groups whose properties match exactly, while Starts With searches return groups whose properties start with that value.


The Search Groups action card returns a maximum of 4,000 groups.


Field Definition Type Required
Result Set Choose to return the First Matching Record, or return All Matching Records, which returns a list of objects as the output field on the card. Dropdown TRUE
Search By

Choose the search operator when searching for groups.

Exact Match returns groups whose properties are exactly equal to the input values.

Starts With returns groups whose properties start with the input values.


This operator will be applied to all properties, which means that if you choose Exact Match, then all input field properties must match in order to return results. Similarly, choosing Starts With means that all input field properties will be queried using the 'Starts With' operator. Currently, you cannot choose to perform Exact Match and Starts With searches using multiple properties on a single Search Groups action.

Dropdown TRUE


Field Definition Type Required
Assigned Licenses The licenses that are assigned to the group. List of objects FALSE
Classification This is the classification for the group (such as low, medium, or high business impact). Valid values for this property are defined by creating a group setting classification list using the group settings template. See groupSetting and groupSettingTemplate. String FALSE
Display Name The display name for the group. This property is required when a group is created and cannot be cleared during updates. String FALSE
Group Types Search for Office 365 or Security groups. Dropdown FALSE
Office 365 Group Return all Office 365 groups. String FALSE
Security Group Return all security groups. String FALSE
Has Members With License Errors Indicates whether there are members in this group that have license errors from its group-based license assignment. Boolean FALSE
Id The unique identifier for the group. String FALSE
License Processing State Indicates the status of the group license assignment to all members of the group. Default value is false. Read-only. Possible values: QueuedForProcessing, ProcessingInProgress, and ProcessingComplete. String FALSE
Mail The SMTP address for the group, for example, String FALSE
Mail Enabled true: the group is mail-enabled. false: the group is not mail-enabled. Boolean FALSE
Mail Nickname The mail alias for the group, unique in the organization. String FALSE
On Premises Last Sync Date Time This is when the group was last synced with the on-premises directory. This is a timestamp value that follows the ISO 8601 format and is in UTC time. For example, midnight UTC on January 1, 2014 is expressed as 2014-01-01T00:00:00Z. String FALSE
On Premises Provisioning Errors Errors when using Microsoft synchronization product during provisioning. List of objects FALSE
On Premises Security Identifier Contains the on-premises security identifier (SID) for the group that was synchronized from on-premises to the cloud. String FALSE
On Premises Sync Enabled true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Boolean FALSE
Preferred Data Location The preferred data location for the group. See OneDrive Online Multi-Geo. String FALSE
Proxy Addresses Email addresses for the group that direct to the same group mailbox. For example: ["SMTP:", "smtp:"]. The any operator is required to filter expressions on multi-valued properties. List of text FALSE
Security Enabled Specifies whether the group is a security group. Boolean FALSE
Unseen Count The number of conversations that have received new posts since the signed-in user last visited the group. Number FALSE


Field Definition Type
Id The unique identifier for the group. String
Display Name The display name for the group. String

Related topics

Office 365 Admin connector

About the elements of Okta Workflows

Office 365 Admin Management APIs overview