user group agreement function work