Exporting user permissions?

半腔热情 提交于 2019-12-23 15:41:24

问题


Does anyone know of any way to export user and role permissions, and then re-import them on another copy of Sitecore?

I've had a search around, and bar writing a bit of code to do this, doesn't appear to be anything immediately available ...


回答1:


The permissions are actually stored on the items themselves, not the Role or User objects. There are two ways to export the object like Stephen mentioned, perform the export/import on the item you granted/revoked access to, not the role or user.




回答2:


There are two ways to do this .. you can make a Sitecore package and add them to that, the other way is to use Serialization which will write text files to disk that you can then restore into another sitecore instance.

The choice very much depends on how many users / roles you have to move. If its just a few, you can use a Sitecore package but if you have a lot you will probably want to use serialization to do it.

More info about each topic can be found here..

  • Serialization Guide
  • Info on Packages


来源:https://stackoverflow.com/questions/12958176/exporting-user-permissions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!