Making changes to GroupMemberDetails
GroupMemberDetail
This article gives an example of how to add/alter/remove GroupMemberDetails, which are used in detail membership groups, and specify the role and term of a membership.
Data models list the properties available and their datatype, and will explain the purpose of each property.
View data model details
Add, Update, and Delete of GroupMemberDetailData is performed via update to the GroupMember's GroupMemberDetailDataCollection.
- Execute a HTTP GET for the desired GroupMemberData
- Optional - Add new GroupMemberDetailData to the GroupMemberData's GroupMemberDetailDataCollection
- Optional - Update or Delete desired GroupMemberDetailData (identified by the GroupMemberDetailId) in the GroupMemberData's GroupMemberDetailDataCollection.
- Execute a HTTP PUT for the updated GroupMemberData
The following is an example of a GroupMemberData with a GroupMemberDetail.
{
"$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": "ED9378EF-6998-4B64-BECB-2C3A3F897A76",
"Stage": { "$type": "Asi.Soa.Membership.DataContracts.GroupStageData, Asi.Contracts" },
"EffectiveDate": "2015-08-03T00:00:00",
"ExpirationDate": "2016-08-03T00:00:00",
"Role": {
"$type": "Asi.Soa.Membership.DataContracts.GroupRoleData, Asi.Contracts",
"RoleId": "29AAE912-660E-4C53-B884-AD9EE27DEE0C",
"Description": "Member",
"Name": "Member"
}
}
]
},
"GroupMemberId": "121B2DF0-406C-4821-9DFC-A4E433A1035B",
"Group": {
"$type": "Asi.Soa.Membership.DataContracts.GroupSummaryData, Asi.Contracts",
"GroupId": "556FE5A0-86A3-4910-BB44-5957D73388E2",
"Name": "Association Guide Document",
"Description": "Members of this group consist of purchasers of the \"Association CEO's Guide to Improving Organizational Performance\" product. This group provides access control to the downloadable file associated with this product.",
"ParentIdentity": {
"$type": "Asi.Soa.Core.DataContracts.IdentityData, Asi.Contracts",
"EntityTypeName": "Public",
"IdentityElements": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [ "Public Groups" ]
}
},
"GroupClass": {
"$type": "Asi.Soa.Membership.DataContracts.GroupClassSummaryData, Asi.Contracts",
"GroupClassId": "E88E66B1-9516-47F9-88DC-E2EB8A3EF13E",
"Name": "Purchased Products",
"Description": "Use this group type when creating groups that allow access to content related to a product when that product is purchased.",
"IsReadOnly": true,
"IsDateLimited": true
},
"StatusCode": "A"
},
"Party": {
"$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
"CityName": "Toronto",
"CountryName": "Canada",
"CountrySubEntityName": "ON",
"Email": "[email protected]",
"Phone": "(416) 787-8888",
"PartyId": "22673",
"Id": "22673",
"UniformId": "bea0dcdc-826d-4416-a540-2388a3c2a9d7",
"Status": {
"$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
"PartyStatusId": "A",
"Name": "Active",
"Description": "Active"
},
"Name": "Mr. Nathan Lauzier",
"Sort": "LAUZIER, NATHAN",
"IsMarkedForDelete": false
},
"JoinDate": "2015-08-03T00:00:00",
"IsActive": false
}
Updated almost 2 years ago