<h1>POST api/reportserver/v2/users/federation</h1>
<div>
<p>
Creates a new federation user.
</p>

<h2>Request Information</h2>

<h3>URI Parameters</h3>
<p>None.</p>

<h3>Body Parameters</h3>

<p>Federation user model.</p>

<a href="/implementer-guide/apis/rest-api/v2/createfederationuserdata">CreateFederationUserData</a>

<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
<tr>
<td class="parameter-name">Username</td>
<td class="parameter-documentation">
<p>
Specifies the username of the local user.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">Email</td>
<td class="parameter-documentation">
<p>
Specifies the email of the local user.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">Enabled</td>
<td class="parameter-documentation">
<p>
Specifies whether the local user is enabled or disabled.
</p>
</td>
<td class="parameter-type">
boolean

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">RoleIds</td>
<td class="parameter-documentation">
<p>
Specifies the IDs  which the user is assigned to.
</p>
</td>
<td class="parameter-type">
Collection of string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
</tbody>
</table>
<h3>Request body formats</h3>
<div>
<h4 class="sample-header">application/json, text/json</h4>
<div class="sample-content">

```json
{
  "Username": "jane.doe",
  "Email": "john.smith@example.com",
  "Enabled": true,
  "RoleIds": [
    "06bafb5241f",
    "333fbd67660"
  ]
}
```

</div>
</div>

<h2>Response Information</h2>

<h3>Resource Description</h3>

<p></p>

<a href="/implementer-guide/apis/rest-api/v2/user">User</a>

<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
<tr>
<td class="parameter-name">Id</td>
<td class="parameter-documentation">
<p>
Specifies the user identifier.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">Username</td>
<td class="parameter-documentation">
<p>
Specifies the username of the user.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">FirstName</td>
<td class="parameter-documentation">
<p>
Specifies the first name of the user.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">LastName</td>
<td class="parameter-documentation">
<p>
Specifies the last name of the user.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">Email</td>
<td class="parameter-documentation">
<p>
Specifies the email of the user.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">Enabled</td>
<td class="parameter-documentation">
<p>
Specifies whether the user is enabled or not.
</p>
</td>
<td class="parameter-type">
boolean

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
</tbody>
</table>

<h3>Response Formats</h3>
<div>
<h4 class="sample-header">application/json, text/json</h4>
<div class="sample-content">

```json
{
  "Id": "7918ecedd41",
  "Username": "jane.doe",
  "FirstName": "Alex",
  "LastName": "Doe",
  "Email": "john.smith@example.com",
  "Enabled": true
}
```

</div>
</div>
</div>
