Spartacus ASM 模式下遇到错误消息 Cannot find user with propertyValue CustomerSupportAgent
如图:
原因:user name for asm must be all in lowercase
ASM 的用户名要小写才行。
如果不使用标准的 agent user,那么自己的用户名应该分配到这些组里:asagentsalesmanagergroup,customermanagergroup
编辑这个文件:hybris/config/local.properties
# Specifies the location of the spring context file putted automatically to the global platform application context.
samlsinglesignon.application-context=samlsinglesignon-spring.xml
# the user type for newly created user in hybris
sso.mapping.asagentgroup.usertype=Employee
# the user group mapping that is valid in hybris
sso.mapping.asagentgroup.groups=asagentsalesmanagergroup
# the user type for newly created user in hybris
sso.mapping.SALES_REP.usertype=Employee
# the user group mapping that is valid in hybris
sso.mapping.SALES_REP.groups=asagentsalesgroup
# the user type for newly created user in hybris
sso.mapping.SALES_MANAGER.usertype=Employee
# the user group mapping that is valid in hybris
sso.mapping.SALES_MANAGER.groups=asagentsalesmanagergroup
# the user type for newly created user in hybris
sso.mapping.SERVICE_AGENT.usertype=Employee
# the user group mapping that is valid in hybris
sso.mapping.SERVICE_AGENT.groups=asagentsalesgroup
# the user type for newly created user in hybris
sso.mapping.SERVICE_MANAGER.usertype=Employee
# the user group mapping that is valid in hybris
sso.mapping.SERVICE_MANAGER.groups=asagentsalesmanagergroup
# the default context to use to build the redirect URL for security reasons
sso.redirect.url=YOURVALUE
# cookie age in seconds
sso.cookie.max.age=60
# cookie path
sso.cookie.path=/
# cookie domain
sso.cookie.domain=
#generated token name, if empty then samlPassThroughToken will be used
sso.cookie.name=samlPassThroughToken
# default password encoding
sso.password.encoding=md5
#usergroup attribute name in the saml assertion
sso.usergroup.attribute.key=usergroup
#firstname attribute name in the saml assertion
sso.firstname.attribute.key=first_name
#lastname attribute name in the saml assertion
sso.lastname.attribute.key=last_name
#userid attribute name in the saml assertion
sso.userid.attribute.key=mail
# location of the samelKeystore file
sso.keystore.location=classpath:security/samlKeystore.jks
# password of the keystore, changeit by default
sso.keystore.password=changeit
# default priate key alias shipped within samlkeysotre
sso.keystore.privatekey.alias=hybris
# private key password
sso.keystore.privatekey.password=changeit
# alias for the default certificate
sso.keystore.default.certificate.alias=hybris
# the location of the metadata file which holds the IDP info
sso.metadata.location=classpath:security/metadata.xml
# the entity id to identity our service provider
sso.entity.id=urn:ssoextension:hybris:de
# default password encoding
sso.password.encoding=md5
asagentsalesmanagergroup
是一种特殊的用户组,主要为销售代理的管理者提供。销售代理管理者通常负责管理和指导销售团队,他们需要对销售数据、销售进度和销售团队的绩效有全面的了解,以便做出合适的决策和策略。在 SAP Commerce Cloud 中,asagentsalesmanagergroup
的用户可以访问到一系列与销售相关的功能和数据,例如订单管理、客户管理、销售报告等。此外,他们还可以访问一些管理功能,例如团队绩效管理、销售目标设定等。
例如,假设我们有一个销售代理 A,他的上级经理 B 是 asagentsalesmanagergroup
的用户。A 完成了一笔订单后,B 可以在系统中查看这笔订单的详细信息,包括订单金额、购买的商品、客户信息等。此外,B 还可以查看 A 的销售绩效,包括总销售额、完成的订单数量、平均订单金额等。这些信息可以帮助 B 制定合适的销售策略和目标,以提升销售团队的绩效。
接下来,我们来看 customermanagergroup
。这是另一种特殊的用户组,主要为客户管理者提供。客户管理者通常负责管理和维护客户关系,他们需要了解客户的需求和反馈,以提供更好的服务。在 SAP Commerce Cloud 中,customermanagergroup
的用户可以访问到一系列与客户管理相关的功能和数据,例如客户信息管理、客户服务、客户反馈管理等。
例如,假设我们有一个客户 C,他有一些需求和反馈需要向我们的公司提出。我们公司的客户经理 D 是 customermanagergroup
的用户。C 提出的需求和反馈会在系统中记录下来,D 可以在系统中查看并处理这些需求和反馈。此外,D 还可以查看 C 的购买记录和行为,以了解 C 的需求和喜好。这些信息可以帮助 D 提供更个性化的服务,以提升客户满意度。
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。