POST Users/UpdateSecurityGroups

Updates the security groups that the user is assigned to. All security groups must be sent as ones not in the list will be removed.

Request Information

URI Parameters

None.

Body Parameters

UpdateUserSecurityGroupsDTO
NameDescriptionTypeAdditional information
UserID

Gets or sets the ID of the user

globally unique identifier

None.

Groups

list of Groups

Collection of SecurityGroupDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "results": [
    {
      "UserID": "3b00ac84-bff3-439f-b58d-1f8ee07dcc07",
      "Groups": [
        {
          "Name": "sample string 1",
          "Path": "sample string 2",
          "OwnerID": "e5145000-5c1b-41a2-b918-0df43b74e6d1",
          "Owner": "sample string 4",
          "ParentSecurityGroupID": "b82bbec6-d342-4eb2-bb2d-befe194689ce",
          "ParentSecurityGroup": "sample string 5",
          "Kind": 0,
          "Type": 1,
          "ID": "a9c54698-3d6f-4182-b207-3ebfd7a0a375",
          "Timestamp": "QEA="
        },
        {
          "Name": "sample string 1",
          "Path": "sample string 2",
          "OwnerID": "e5145000-5c1b-41a2-b918-0df43b74e6d1",
          "Owner": "sample string 4",
          "ParentSecurityGroupID": "b82bbec6-d342-4eb2-bb2d-befe194689ce",
          "ParentSecurityGroup": "sample string 5",
          "Kind": 0,
          "Type": 1,
          "ID": "a9c54698-3d6f-4182-b207-3ebfd7a0a375",
          "Timestamp": "QEA="
        }
      ]
    }
  ]
}

text/javascript

Sample:
{"results":[{"UserID":"3b00ac84-bff3-439f-b58d-1f8ee07dcc07","Groups":[{"Name":"sample string 1","Path":"sample string 2","OwnerID":"e5145000-5c1b-41a2-b918-0df43b74e6d1","Owner":"sample string 4","ParentSecurityGroupID":"b82bbec6-d342-4eb2-bb2d-befe194689ce","ParentSecurityGroup":"sample string 5","Kind":0,"Type":1,"ID":"a9c54698-3d6f-4182-b207-3ebfd7a0a375","Timestamp":"QEA="},{"Name":"sample string 1","Path":"sample string 2","OwnerID":"e5145000-5c1b-41a2-b918-0df43b74e6d1","Owner":"sample string 4","ParentSecurityGroupID":"b82bbec6-d342-4eb2-bb2d-befe194689ce","ParentSecurityGroup":"sample string 5","Kind":0,"Type":1,"ID":"a9c54698-3d6f-4182-b207-3ebfd7a0a375","Timestamp":"QEA="}]}]}

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

application/xml, text/xml

Sample:
<UpdateUserSecurityGroupsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Lpp.Dns.DTO">
  <Groups>
    <SecurityGroupDTO>
      <ID xmlns="http://schemas.datacontract.org/2004/07/Lpp.Objects">a9c54698-3d6f-4182-b207-3ebfd7a0a375</ID>
      <Timestamp xmlns="http://schemas.datacontract.org/2004/07/Lpp.Objects">QEA=</Timestamp>
      <Kind>Custom</Kind>
      <Name>sample string 1</Name>
      <Owner>sample string 4</Owner>
      <OwnerID>e5145000-5c1b-41a2-b918-0df43b74e6d1</OwnerID>
      <ParentSecurityGroup>sample string 5</ParentSecurityGroup>
      <ParentSecurityGroupID>b82bbec6-d342-4eb2-bb2d-befe194689ce</ParentSecurityGroupID>
      <Path>sample string 2</Path>
      <Type>Organization</Type>
    </SecurityGroupDTO>
    <SecurityGroupDTO>
      <ID xmlns="http://schemas.datacontract.org/2004/07/Lpp.Objects">a9c54698-3d6f-4182-b207-3ebfd7a0a375</ID>
      <Timestamp xmlns="http://schemas.datacontract.org/2004/07/Lpp.Objects">QEA=</Timestamp>
      <Kind>Custom</Kind>
      <Name>sample string 1</Name>
      <Owner>sample string 4</Owner>
      <OwnerID>e5145000-5c1b-41a2-b918-0df43b74e6d1</OwnerID>
      <ParentSecurityGroup>sample string 5</ParentSecurityGroup>
      <ParentSecurityGroupID>b82bbec6-d342-4eb2-bb2d-befe194689ce</ParentSecurityGroupID>
      <Path>sample string 2</Path>
      <Type>Organization</Type>
    </SecurityGroupDTO>
  </Groups>
  <UserID>3b00ac84-bff3-439f-b58d-1f8ee07dcc07</UserID>
</UpdateUserSecurityGroupsDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.