Skip to content

OrganizationService

Manages organization creation, retrieval, updates, and SSO attribute mapping configuration.

MethodDescription
CreateOrganizationCreate a new organization
GetOrganizationGet the current organization
UpdateOrganizationUpdate organization details
UpdateSsoAttributeMappingsConfigure SSO attribute mappings

Create a new organization. Called during onboarding after first sign-in.

Authorization: Authenticated user (JWT, no existing org required)

FieldTypeDescription
namestringOrganization name. Max 200 characters.
industryIndustryIndustry vertical.
company_sizeCompanySizeCompany size range.
FieldTypeDescription
organizationOrganizationThe created organization.

Get the authenticated user’s organization.

Authorization: Authenticated user

Empty request. Organization is derived from the JWT custom:org_id claim.

FieldTypeDescription
organizationOrganizationThe organization.

Authorization: Requires MANAGE_ORGANIZATION permission

FieldTypeDescription
namestringUpdated name.
industryIndustryUpdated industry.
company_sizeCompanySizeUpdated company size.
FieldTypeDescription
organizationOrganizationThe updated organization.

Configure how SAML assertion attributes map to Pidgr user profile fields.

Authorization: Requires MANAGE_SSO permission

Request: UpdateSsoAttributeMappingsRequest

Section titled “Request: UpdateSsoAttributeMappingsRequest”
FieldTypeDescription
mappingsSsoAttributeMapping[]Attribute mappings to set.

Response: UpdateSsoAttributeMappingsResponse

Section titled “Response: UpdateSsoAttributeMappingsResponse”
FieldTypeDescription
mappingsSsoAttributeMapping[]The saved mappings.
FieldTypeDescription
idstringUnique identifier.
namestringOrganization name.
industryIndustryIndustry vertical.
company_sizeCompanySizeCompany size range.
sso_attribute_mappingsSsoAttributeMapping[]SSO attribute mappings.
created_atTimestampCreation timestamp.
updated_atTimestampLast update timestamp.

TECHNOLOGY, FINANCE, HEALTHCARE, EDUCATION, RETAIL, MANUFACTURING, MEDIA, GOVERNMENT, NON_PROFIT, OTHER

SMALL (1–50), MEDIUM (51–200), LARGE (201–1000), ENTERPRISE (1001+)