Exporting user permissions?

2019-07-03 01:50发布

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 ...

2条回答
The star\"
2楼-- · 2019-07-03 02:35

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..

查看更多
Bombasti
3楼-- · 2019-07-03 02:40

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.

查看更多
登录 后发表回答