# SearchAdAccountUser

Required Frends version: 5.1+

Required .NET version: 471, 6.0, standard2.0

Compatible Agents: Legacy, Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.LinkedIn/tree/main/Frends.LinkedIn.SearchAdAccountUser>

{% tabs %}
{% tab title="Parameter: Filter" %}

| Name                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SearchMethod : `SearchAttribute` | <p>Enumeration to choose how the search is done.</p><p>Possible values:</p><ul><li><code>FindAdAccountsByAuthenticatedUser</code>:</li></ul><p>Enumeration to choose how the search is done.</p><ul><li><code>FindAdAccountUsersByAccounts</code>:</li></ul><p>Enumeration to choose how the search is done.</p><ul><li><code>GetAdAccountUser</code>:</li></ul><p>Enumeration to choose how the search is done.</p><p><br>Default: <code>-</code><br>Example: <code>SearchAttribute.FindAdAccountsByAuthenticatedUser</code></p> |
| AccountUrn : `String`            | <p>Searches for users with AdAccount URN.</p><p><br>Default: <code>-</code><br>Example: <code>urn:li:sponsoredAccount:516986977</code></p>                                                                                                                                                                                                                                                                                                                                                                                        |
| AccountUrns : `AccountUrn[]`     | <p>Searches for users with AdAccount URN.</p><p><br>Default: <code>-</code><br>Example: <code>\[ urn:li:sponsoredAccount:516986977 ]</code></p>                                                                                                                                                                                                                                                                                                                                                                                   |
| UserUrn : `String`               | <p>Searches for users with person URN.</p><p><br>Default: <code>-</code><br>Example: <code>urn:li:person:\_mVMF2Kp8p</code></p>                                                                                                                                                                                                                                                                                                                                                                                                   |
| {% endtab %}                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

{% tab title="Parameter: Options" %}

| Name                                               | Description                                                                                                                                                                                                                                                                                                                     |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| LinkedInAPIVersion : `String`                      | <p>Version of the API used in the request.</p><p>API versions should have date format as YYYYMM or YYYYMM.RR where RR is the revision.</p><p>More information: <https://learn.microsoft.com/en-us/linkedin/marketing/versioning?view=li-lms-2023-09></p><p><br>Default: <code>202309</code><br>Example: <code>202309</code></p> |
| 🗝Token : `String`                                 | <p>Bearer token to be used for requests. Token will be added as Authorization header.</p><p><br>Default: <code>-</code><br>Example: <code>xRqjX\_9QXZlvRL6HZHJvbrubhvceV4NFccANh6RwndmAJDkPfP...</code></p>                                                                                                                     |
| ConnectionTimeoutSeconds : `Int32`                 | <p>Timeout in seconds to be used for the connection and operation.</p><p><br>Default: <code>30</code><br>Example: <code>30</code></p>                                                                                                                                                                                           |
| FollowRedirects : `Boolean`                        | <p>If FollowRedirects is set to false, all responses with an HTTP status code from 300 to 399 is returned to the application.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p>                                                                                                                            |
| AllowInvalidCertificate : `Boolean`                | <p>Do not throw an exception on certificate error.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p>                                                                                                                                                                                                          |
| AllowInvalidResponseContentTypeCharSet : `Boolean` | <p>Some Api's return faulty content-type charset header. This setting overrides the returned charset.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p>                                                                                                                                                       |
| ThrowExceptionOnErrorResponse : `Boolean`          | <p>Throw exception if return code of request is not successfull.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p>                                                                                                                                                                                            |
| AutomaticCookieHandling : `Boolean`                | <p>If set to false, cookies must be handled manually. Defaults to true.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p>                                                                                                                                                                                  |
| {% endtab %}                                       |                                                                                                                                                                                                                                                                                                                                 |

{% tab title="Result: Result" %}

| Name                                   | Description                                                                                                                                                                                                       |
| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Body : `Object`                        | <p>Body of response. Response body contains two properties: paging and elements.<br>Example: <code>{"paging": {"start": 0, "count":10, "links": \[], "total": 1}, "elements": \[{"totalBudget": ...}]}</code></p> |
| Headers : `Dictionary<String, String>` | <p>Headers of response.<br>Example: <code>{\[ "content-type": "application/json", ... ]}</code></p>                                                                                                               |
| StatusCode : `Int32`                   | <p>Status code of the response.<br>Example: <code>200</code></p>                                                                                                                                                  |
| {% endtab %}                           |                                                                                                                                                                                                                   |

{% tab title="Changelog" %}

## Changelog

### \[1.1.0] - 2025-03-18

#### Changed

* Update packages: Newtonsoft.Json 12.0.3 -> 13.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.Runtime.Caching 7.0.0 -> 9.0.3 coverlet.collector 3.1.2 -> 6.0.4 Microsoft.NET.Test.Sdk 16.6.1 -> 17.13.0 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0

### \[1.0.1] - 2023-10-31

#### Added

* Added multitagreting to net471 and netstandard2.0

### \[1.0.0] - 2023-10-23

#### Added

* Initial implementation
  {% endtab %}
  {% endtabs %}
