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

Discussions

Ask a Question
Back to All

Remove a person from an organization

Hi,

I am trying to remove someone from an organization, so that no organization is tied to the person, but I have not been able to change, ismarkedfordelete. I don't see a flag for 'IsMarkedForDelete' in membership details, but in Party. I tried changing this flag, but an error happens. If I try adding the flag to MembershipDetails, an error is returned. What do I need to do to remove someone from an org?

Here is my get request to see the relationship:

jQuery.ajax("https://njcaastaging.imiscloud.com/api/GroupMember/?PartyID=23231&GroupID=ORGRELATIONSHIP-23224", {
type: "GET",
contentType: "application/json",
headers: {
"RequestVerificationToken": document.getElementById("__RequestVerificationToken").value
}
});

Here is what is returned.

{
"$type": "Asi.Soa.Core.DataContracts.PagedResult1[[Asi.Soa.Membership.DataContracts.GroupMemberData, Asi.Contracts]], Asi.Contracts", "Items": { "$type": "System.Collections.Generic.List1[[Asi.Soa.Membership.DataContracts.GroupMemberData, Asi.Contracts]], mscorlib",
"$values": [
{
"$type": "Asi.Soa.Membership.DataContracts.GroupMemberData, Asi.Contracts",
"MembershipDetails": {
"$type": "Asi.Soa.Membership.DataContracts.GroupMemberDetailDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Membership.DataContracts.GroupMemberDetailData, Asi.Contracts",
"GroupMemberDetailId": "ORGRELATIONSHIP-23224:23231",
"Stage": {
"$type": "Asi.Soa.Membership.DataContracts.GroupStageData, Asi.Contracts"
},
"IsActive": true,
"Role": {
"$type": "Asi.Soa.Membership.DataContracts.GroupRoleData, Asi.Contracts",
"RoleId": "ORGRELATIONSHIP:MEMBER",
"Name": "Member"
},
"Title": ""
}
]
},
"GroupMemberId": "ORGRELATIONSHIP-23224:23231",
"Group": {
"$type": "Asi.Soa.Membership.DataContracts.GroupSummaryData, Asi.Contracts",
"GroupId": "ORGRELATIONSHIP-23224",
"Name": "York Test Community College",
"Description": "Organizational Relationship",
"ParentIdentity": {
"$type": "Asi.Soa.Core.DataContracts.IdentityData, Asi.Contracts",
"EntityTypeName": "Party",
"IdentityElements": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"23224"
]
}
},
"GroupClass": {
"$type": "Asi.Soa.Membership.DataContracts.GroupClassSummaryData, Asi.Contracts",
"GroupClassId": "ORGRELATIONSHIP",
"Name": "Organization",
"Description": ""
}
},
"Party": {
"$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
"CityName": "",
"CountryName": "",
"CountrySubEntityName": "",
"Email": "[email protected]",
"Phone": "",
"PartyId": "23231",
"Id": "23231",
"UniformId": "c349c619-587b-4d39-97e7-cf8a0bf7d865",
"Status": {
"$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
"PartyStatusId": "A",
"Name": "Active",
"Description": "Active"
},
"Name": "Brian Pitch",
"Sort": "PITCH, BRIAN",
"IsMarkedForDelete": false
},
"IsActive": true
}
]
},
"Offset": 0,
"Limit": 100,
"Count": 1,
"TotalCount": 1,
"NextPageLink": null,
"HasNext": false,
"NextOffset": 0
}