5. Validate user's organization role Copy
GET {{baseUrl}}/organizationAcls?q=roleAssignee
View the Organization Access Control documentation.
Find the organization from the previous request. A member must have access to the Sponsored Accounts (step 2) AND also be a Page Admin (ADMINISTRATOR)
or a Lead Gen Form Manager paid media admin (LEAD_GEN_FORM_MANAGER)
on the Company Page associated with the Sponsored Account they've chosen.
If the user's role is not one of the approved roles for pulling leads, you should display a message to the user advising them to reach out to their LinkedIn company page admin(s) to provide proper access.
Below are two resources to better understand Page Admin vs Paid Media Admin:
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
q | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
LinkedIn-Version | string | ||
X-Restli-Protocol-Version | string |
RESPONSES
status: OK
{"paging":{"start":0,"count":2,"links":[]},"elements":[{"roleAssignee":"urn:li:person:BcIpowkL","state":"APPROVED","role":"LEAD_GEN_FORMS_MANAGER","organization":"urn:li:organization:11223344"},{"roleAssignee":"urn:li:person:BcIpowkL","state":"REVOKED","role":"CURATOR","organization":"urn:li:organization:2355689"}]}