Sets Access Level Groups of a Person in batchWill remove any Access Level Groups not passed into the request Returns () Sets Access Level Groups of a Person in batchWill remove any Access Level Groups not passed into the request Returns ()Exception Type: ArgumentNullException
Overview of SetAccessLevelGroupBatchForPersonAsync goes here.
| Name | Description |
|---|---|
| person | The person to set access level groups for |
| accessLevelGroupLinkItems | The Access Level Group Object Link Items to set on the PersonAll Object Link Items provided must have the relation ‘AccessLevelGroup’Each Object Link Item’s MetaDataBson must be a valid Base64 string that is encoded from a BsonDocumentWill remove all Access Level Groups that are not included |
| personHref | The href of the person to set access level groups for |
| accessLevelGroupLinkItems | The Access Level Group Object Link Items to set on the PersonAll Object Link Items provided must have the relation ‘AccessLevelGroup’Each Object Link Item’s MetaDataBson must be a valid Base64 string that is encoded from a BsonDocumentWill remove all Access Level Groups that are not included |
| batchLink | The link on the Person to use to send the batch request |
Example in C#
// Returns: nothing
await client.SetAccessLevelGroupBatchForPersonAsync(PersonInfo person, ObjectLinkItem accessLevelGroupLinkItems);
Example in C#
// Returns: nothing
await client.SetAccessLevelGroupBatchForPersonAsync(String personHref, ObjectLinkItem accessLevelGroupLinkItems, String batchLink);
Example in CURL
curl -X PUT \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/accesslevelgroupbatch \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-d '[
{
"LinkedObjectKey": "{ACCESSLEVELGROUP1.KEY}",
"Relation": "AccessLevelGroup",
"MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
"AddAsTag": false
},
{
"LinkedObjectKey": "{ACCESSLEVELGROUP2.KEY}",
"Relation": "AccessLevelGroup",
"MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
"AddAsTag": false
}
]'
# MetaDataBson represents
# {
# "foo": "bar"
# }
Example in CURL
curl -X PUT \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/accesslevelgroupbatch \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-d '[
{
"LinkedObjectKey": "{ACCESSLEVELGROUP1.KEY}",
"Relation": "AccessLevelGroup",
"MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
"AddAsTag": false
},
{
"LinkedObjectKey": "{ACCESSLEVELGROUP2.KEY}",
"Relation": "AccessLevelGroup",
"MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
"AddAsTag": false
}
]'
# MetaDataBson represents
# {
# "foo": "bar"
# }