3. Get the user's organization(s) (company pages)

GET {{baseUrl}}/organizationAcls?q=roleAssignee&state=APPROVED&count=10&start=0

In this step, you'll retrieve a list of all the organizations that the logged in user has an approved role for. The authenticated user must have one of the roles mentioned in our permissions table to successfully sync leads (note this may be different depending on the lead type chosen in the previous step).

Additional information on this API is available on the Organization Access Control page.

Step 3: Ask user to select the organization(s) for which they are interested in syncing leads for

Request Params

KeyDatatypeRequiredDescription
qstring
statestring
countnumber
startnumber

HEADERS

KeyDatatypeRequiredDescription
X-Restli-Protocol-Versionstring
LinkedIn-Versionstring

RESPONSES

status: OK

{"paging":{"start":0,"count":10,"links":[]},"elements":[{"roleAssignee":"urn:li:person:BcLKbjuipL","state":"APPROVED","lastModified":{"actor":"urn:li:person:BcLKbjuipL","impersonator":"urn:li:servicePrincipal:organization","time":1683063892716},"role":"LEAD_GEN_FORMS_MANAGER","created":{"actor":"urn:li:person:BcLKbjuipL","impersonator":"urn:li:servicePrincipal:organization","time":1655913677098},"organization":"urn:li:organization:11223344"}]}