Add privilege related groups

Add privilege groups as needed by
user management.

Change-Id: I5e7204f8e334ef19d4999147f9e269061561f587
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
diff --git a/common/recipes-phosphor/users/phosphor-user-manager.bb b/common/recipes-phosphor/users/phosphor-user-manager.bb
index d5f039f..d18535c 100644
--- a/common/recipes-phosphor/users/phosphor-user-manager.bb
+++ b/common/recipes-phosphor/users/phosphor-user-manager.bb
@@ -15,6 +15,11 @@
 RDEPENDS_${PN} += "libsystemd"
 RDEPENDS_${PN} += "phosphor-logging"
 
+inherit useradd
+
+USERADD_PACKAGES = "${PN}"
+# add groups needed for privilege maintenance
+GROUPADD_PARAM_${PN} = "priv-admin; priv-operator; priv-user; priv-callback "
 
 DBUS_SERVICE_${PN} += "xyz.openbmc_project.User.Manager.service"