Create Google IDP Integration
Creates a new Google Workspace IDP integration
Request-Body Parameters
- Name
group_prefixes- Type
- string[]
- Required
- optional
- Enum
- Description
List of start_with string patterns for groups to sync
- Name
user_group_prefixes- Type
- string[]
- Required
- optional
- Enum
- Description
List of start_with string patterns for groups which users to sync
- Name
connector_id- Type
- string
- Required
- optional
- Enum
- Description
DEX connector ID for embedded IDP setups
- Name
service_account_key- Type
- string
- Required
- required
- Enum
- Description
Base64-encoded Google service account key
- Name
customer_id- Type
- string
- Required
- required
- Enum
- Description
Customer ID from Google Workspace Account Settings
- Name
sync_interval- Type
- integer
- Required
- optional
- Enum
- Possible Values:
>=300 - Description
Sync interval in seconds (minimum 300). Defaults to 300 if not specified.
Request
curl -X POST https://api.netbird.io/api/integrations/google-idp \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Token <TOKEN>' \
--data-raw '{
"group_prefixes": [
"Engineering",
"Sales"
],
"user_group_prefixes": [
"Users"
],
"connector_id": {
"type": "string",
"description": "DEX connector ID for embedded IDP setups"
},
"service_account_key": "eyJ0eXBlIjoic2VydmljZV9hY2NvdW50Ii...",
"customer_id": "C01234567",
"sync_interval": 300
}'
Response
{
"enabled": true,
"group_prefixes": [
"Engineering",
"Sales"
],
"user_group_prefixes": [
"Users"
],
"connector_id": {
"type": "string",
"description": "DEX connector ID for embedded IDP setups"
},
"id": 1,
"customer_id": "C01234567",
"sync_interval": 300,
"last_synced_at": "2023-05-15T10:30:00Z"
}
Get All Google IDP Integrations
Retrieves all Google Workspace IDP integrations for the authenticated account
Request
curl -X GET https://api.netbird.io/api/integrations/google-idp \
-H 'Accept: application/json' \
-H 'Authorization: Token <TOKEN>'
Response
[
{
"enabled": true,
"group_prefixes": [
"Engineering",
"Sales"
],
"user_group_prefixes": [
"Users"
],
"connector_id": {
"type": "string",
"description": "DEX connector ID for embedded IDP setups"
},
"id": 1,
"customer_id": "C01234567",
"sync_interval": 300,
"last_synced_at": "2023-05-15T10:30:00Z"
}
]
Get Google IDP Integration
Retrieves a Google IDP integration by ID.
Request
curl -X GET https://api.netbird.io/api/integrations/google-idp/{id} \
-H 'Accept: application/json' \
-H 'Authorization: Token <TOKEN>'
Response
{
"enabled": true,
"group_prefixes": [
"Engineering",
"Sales"
],
"user_group_prefixes": [
"Users"
],
"connector_id": {
"type": "string",
"description": "DEX connector ID for embedded IDP setups"
},
"id": 1,
"customer_id": "C01234567",
"sync_interval": 300,
"last_synced_at": "2023-05-15T10:30:00Z"
}
Update Google IDP Integration
Updates an existing Google Workspace IDP integration.
Request-Body Parameters
- Name
enabled- Type
- boolean
- Required
- optional
- Enum
- Description
Whether the integration is enabled
- Name
group_prefixes- Type
- string[]
- Required
- optional
- Enum
- Description
List of start_with string patterns for groups to sync
- Name
user_group_prefixes- Type
- string[]
- Required
- optional
- Enum
- Description
List of start_with string patterns for groups which users to sync
- Name
connector_id- Type
- string
- Required
- optional
- Enum
- Description
DEX connector ID for embedded IDP setups
- Name
service_account_key- Type
- string
- Required
- optional
- Enum
- Description
Base64-encoded Google service account key
- Name
customer_id- Type
- string
- Required
- optional
- Enum
- Description
Customer ID from Google Workspace Account Settings
- Name
sync_interval- Type
- integer
- Required
- optional
- Enum
- Possible Values:
>=300 - Description
Sync interval in seconds (minimum 300)
Request
curl -X PUT https://api.netbird.io/api/integrations/google-idp/{id} \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Token <TOKEN>' \
--data-raw '{
"enabled": true,
"group_prefixes": [
"Engineering",
"Sales"
],
"user_group_prefixes": [
"Users"
],
"connector_id": {
"type": "string",
"description": "DEX connector ID for embedded IDP setups"
},
"service_account_key": {
"type": "string",
"description": "Base64-encoded Google service account key"
},
"customer_id": {
"type": "string",
"description": "Customer ID from Google Workspace Account Settings"
},
"sync_interval": {
"type": "integer",
"description": "Sync interval in seconds (minimum 300)",
"minimum": 300
}
}'
Response
{
"enabled": true,
"group_prefixes": [
"Engineering",
"Sales"
],
"user_group_prefixes": [
"Users"
],
"connector_id": {
"type": "string",
"description": "DEX connector ID for embedded IDP setups"
},
"id": 1,
"customer_id": "C01234567",
"sync_interval": 300,
"last_synced_at": "2023-05-15T10:30:00Z"
}
Delete Google IDP Integration
Deletes a Google IDP integration by ID.
Request
curl -X DELETE https://api.netbird.io/api/integrations/google-idp/{id} \
-H 'Accept: application/json' \
-H 'Authorization: Token <TOKEN>'
Response
{}
Sync Google IDP Integration
Triggers a manual synchronization for a Google IDP integration.
Request
curl -X POST https://api.netbird.io/api/integrations/google-idp/{id}/sync \
-H 'Accept: application/json' \
-H 'Authorization: Token <TOKEN>'
Response
{
"result": "ok"
}
Get Google Integration Sync Logs
Retrieves synchronization logs for a Google IDP integration.
Request
curl -X GET https://api.netbird.io/api/integrations/google-idp/{id}/logs \
-H 'Accept: application/json' \
-H 'Authorization: Token <TOKEN>'
Response
[
{
"id": 123,
"level": "info",
"timestamp": "2023-05-15T10:30:00Z",
"message": "Successfully synchronized users and groups"
}
]

