Lines Matching full:usergroups
129 * @param[in] userGroups List of User groups
132 * @return true in case of success, false if UserGroups contains
135 inline bool translateUserGroup(const std::vector<std::string>& userGroups, in translateUserGroup() argument
139 for (const auto& userGroup : userGroups) in translateUserGroup()
162 // 'web' is one of the valid groups in the UserGroups property of in translateUserGroup()
184 * @param[out] userGroups List of User Groups mapped from Account Types
190 std::vector<std::string>& userGroups) in getUserGroupFromAccountType() argument
208 userGroups.emplace_back("ipmi"); in getUserGroupFromAccountType()
212 userGroups.emplace_back("hostconsole"); in getUserGroupFromAccountType()
216 userGroups.emplace_back("ssh"); in getUserGroupFromAccountType()
237 userGroups.emplace_back("redfish"); in getUserGroupFromAccountType()
244 * @brief Sets UserGroups property of the user based on the Account Types
277 "xyz.openbmc_project.User.Attributes", "UserGroups", in patchAccountTypes()
1846 std::vector<std::string> userGroups; in processAfterGetAllGroups() local
1896 userGroups.emplace_back(grp); in processAfterGetAllGroups()
1902 accountTypeUserGroups.size() != userGroups.size()) in processAfterGetAllGroups()
1914 "xyz.openbmc_project.User.Manager", "CreateUser", username, userGroups, in processAfterGetAllGroups()
2079 const std::vector<std::string>* userGroups = nullptr; in handleAccountGet() local
2086 userPasswordExpired, "UserGroups", userGroups); in handleAccountGet()
2145 if (userGroups == nullptr) in handleAccountGet()
2147 BMCWEB_LOG_ERROR("userGroups wasn't a string vector"); in handleAccountGet()
2151 if (!translateUserGroup(*userGroups, asyncResp->res)) in handleAccountGet()
2153 BMCWEB_LOG_ERROR("userGroups mapping failed"); in handleAccountGet()