HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions
These docs are for v20.3.44. Click to read the latest docs for v20.3.192.

Discussions

Ask a Question
Back to All

Adding Company Admin Relationship

Hello,

I have been following this posting on the discussion thread located here: https://developer.imis.com/discuss/5bd09fa65990600041f5563b

I am trying to do something very similar, but am getting a response of "Does not have required permission. (0)" When I try to make that request via Postman.

I am using a very similar JSON request as well, though I did not remove some fields from the Contact because I did not see how they would be required (if they are I will add them back).

Does a certain type of user have to make this request in order for it go through? I made sure to already get an access token from the API.

Judging from the discussion thread linked above is this the correct endpoint I am suppose to make the request to?
https://imistour3947.imiscloud.com/api/CsRelationship (our demo instance)

Here is the JSON string I am using for the request.

{
"$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-18013:18052",
"Stage": {
"$type": "Asi.Soa.Membership.DataContracts.GroupStageData, Asi.Contracts"
},
"IsActive": true,
"Role": {
"$type": "Asi.Soa.Membership.DataContracts.GroupRoleData, Asi.Contracts",
"RoleId": "COMPANYADMINISTRATOR",
"Name": "Company Administrator"
}
}
]
},
"Group": {
"$type": "Asi.Soa.Membership.DataContracts.GroupSummaryData, Asi.Contracts",
"GroupId": "ORGRELATIONSHIP-18013",
"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": ["18013"]
}
},
"GroupClass": {
"$type": "Asi.Soa.Membership.DataContracts.GroupClassSummaryData, Asi.Contracts",
"GroupClassId": "ORGRELATIONSHIP",
"Name": "Organization",
"Description": ""
},
"StatusCode": "A"
},
"Party": {
"$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
"PartyId": "18052",
"Id": "18052"
}
}

I removed most of the properties from the Party object and just left the contact's ID. And for the Group I removed the name of the company.

Do you have any suggestions as to how I should move forward?

Contact us
Copyright © Advanced Solutions International, All rights reserved.