diff --git a/services/distributedfiledaemon/src/device/device_manager_agent.cpp b/services/distributedfiledaemon/src/device/device_manager_agent.cpp index 090088e8d6be8e6ad61f8d4334027d2af86bf871..0c6f90c6d26b2cc78eca67ed4d82483e164b66a5 100644 --- a/services/distributedfiledaemon/src/device/device_manager_agent.cpp +++ b/services/distributedfiledaemon/src/device/device_manager_agent.cpp @@ -224,8 +224,8 @@ void DeviceManagerAgent::QueryRelatedGroups(const std::string &udid, const std:: char *returnGroupVec = nullptr; uint32_t groupNum = 0; - ret = - hichainDevGroupMgr_->getRelatedGroups(IDaemon::SERVICE_NAME.c_str(), udid.c_str(), &returnGroupVec, &groupNum); + ret = hichainDevGroupMgr_->getRelatedGroups(ANY_OS_ACCOUNT, IDaemon::SERVICE_NAME.c_str(), udid.c_str(), + &returnGroupVec, &groupNum); if (ret != 0 || returnGroupVec == nullptr) { LOGE("failed to get related groups, ret %{public}d", ret); return;