Discussions
Adding _ORG-ADMIN group member in 20.2.65.9955 - "Not a valid role."
Hi - trying to add an _ORG-ADMIN group member in 20.2.65.9955. The same payload works in 20.3.121.27, so I'm wondering if this approach just isn't supported in 2017.
{
"$type": "Asi.Soa.Membership.DataContracts.GroupMemberData, Asi.Contracts",
"MembershipDetails": [
{
"$type": "Asi.Soa.Membership.DataContracts.GroupMemberDetailData, Asi.Contracts",
...
"Role": {
"Description": "Company Administrator",
"Name": "_ORG-ADMIN",
"RoleId": "RELATIONSHIP:_ORG-ADMIN"
}
...
...
}
],
"Group": {
"$type": "Asi.Soa.Membership.DataContracts.GroupSummaryData, Asi.Contracts",
...
"GroupId": "RELATIONSHIP-xxxxxx",
...
},
"Party": {
"$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
...
"PartyId": "yyyyyy",
...
}
}
I'm getting this response:
{
"$type": "Asi.Soa.Core.DataContracts.ValidateResultsData, Asi.Contracts",
"IsValid": false,
"ValidationResults": {
"$type": "Asi.Soa.Core.DataContracts.ValidationResultsData, Asi.Contracts",
"Errors": {
"$type": "Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Core.DataContracts.ValidationResultData, Asi.Contracts",
"Message": "Not a valid role."
}
]
},
"Warnings": {
"$type": "Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts",
"$values": []
}
}
}
Is this supported in 2017? Thanks!