AccountUsers
Provides details about users associated with a specific LinkedIn Ads account, including their roles and permissions.
Table Specific Information
Select
For the AccountURN column, the = operator is fully supported server-side. The IN operator is partially supported server-side and partially client-side. Refer to the query examples below:SELECT * FROM AccountUsers WHERE AccountURN = 'urn:li:sponsoredAccount:515215939'
SELECT * FROM AccountUsers WHERE AccountURN IN ('urn:li:sponsoredAccount:515215939', 'urn:li:sponsoredAccount:515221250')
The rest of the query is processed client-side.
Insert
To create a new account user, use an INSERT statement.The following columns are required for this operation:
- AccountURN
- UserURN
- Role
INSERT INTO AccountUsers (AccountURN, UserURN, Role) VALUES ('urn:li:sponsoredAccount:515215939', 'urn:li:person:XXXXXXXXXX', 'CAMPAIGN_MANAGER')
Update
To modify an existing account user, use an UPDATE statement. Note that the AccountURN and UserURN columns are required in the WHERE clause.The following columns are the ones that are mutable after creation:
- Role
UPDATE AccountUsers SET Role = 'VIEWER' WHERE AccountURN = 'urn:li:sponsoredAccount:515215939' AND UserURN = 'urn:li:person:XXXXXXXXXX'
Delete
To remove an account user, use a DELETE statement. Note that the AccountURN and UserURN columns are required in the WHERE clause.DELETE FROM AccountUsers WHERE AccountURN = 'urn:li:sponsoredAccount:515215939' AND UserURN = 'urn:li:person:XXXXXXXXXX'
Columns
| Name | Type | ReadOnly | References | Description |
| AccountURN [KEY] | String | False |
Uniform Resource Name (URN) that uniquely identifies the advertising account to which the user is assigned. | |
| UserURN [KEY] | String | False |
URN that uniquely identifies the LinkedIn member associated with this account. | |
| Role | String | False |
Specifies the user's assigned role within the advertising account. The allowed values are VIEWER, CREATIVE_MANAGER, CAMPAIGN_MANAGER, ACCOUNT_MANAGER, ACCOUNT_BILLING_ADMIN. | |
| CreatedAt | Datetime | True |
Date and time when the user record was first added to the account. | |
| UpdatedAt | Datetime | True |
Date and time when the user record was last updated, reflecting any changes to role or access. |