These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Executes a UserSecurity operation - AddUserRoles

Using the documentation here, https://developer.imis.com/reference/executeusersecurity, I get the following message when I attempt to add user roles.

UserSecurity does not support the operation with supplied parameters: AddUserRoles()String

This is my JSON:

{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "AddUserRoles",
"EntityTypeName": "UserSecurity",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection1[[System.Object, mscorlib]], mscorlib", "$values": [ { "$type": "System.String", "$value": [username] }, { "$type": "System.Collections.Generic.List1[[Asi.Soa.Membership.DataContracts.User.RoleData, Asi.Contracts]]",
"$value": [
[role1],
[role2]
]
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection1[[System.String, mscorlib]], mscorlib", "$values": [ "System.String", "System.Collections.Generic.List1[[Asi.Soa.Membership.DataContracts.User.RoleData, Asi.Contracts]]"
]
},
"UseJson": false
}