Skip to main content
Version: 5.7.0

GetSharedEntitiesForProfileId

Method returns all shared entities for the given profile id.

An entity is shared if its ACL allows for the currently logged in user to read the data.

ServiceOperation
entityREAD_SHARED

Method Parameters

ParameterDescription
targetProfileIdThe profile id to retrieve shared entities for

Usage

http://localhost:3000
string targetProfileId = "profile1";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.EntityService.GetSharedEntitiesForProfileId(targetProfileId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"entities": [
{
"entityId": "544db68a-48ad-4fc9-9f44-5fd36fc6445f",
"entityType": "publicInfo",
"version": 1,
"data": {
"name": "john",
"age": 30
},
"acl": {
"other": 1
},
"createdAt": 1395943044322,
"updatedAt": 1395943044322
}
],
"_serverTime": 1637946319239,
"entityListCount": 1
}
}