4. Validate the user's organization role

GET {{baseUrl}}/organizationAcls?q=roleAssignee&state=APPROVED

View the Organization Access Control documentation.

Take note of the organization (company page) from the previous request (referenceInfo.organization.id). A member must have access to not only the Sponsored Account (step 2) but also have one of the roles mentioned in our permissions table for the associated company page to successfully sync leads.

If the user's role is not one of the approved roles for pulling leads, or the ad account does not have a company page associated to it (empty referenceInfo object in previous request) you should display a helpful message to the user guiding them on next steps.

Below are two resources to better understand Page Admin vs Paid Media Admin:

Request Params

KeyDatatypeRequiredDescription
qstring
statestring

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"}]}