umbraco / Umbraco.Forms.Issues

Public issue tracker for Umbraco Forms
29 stars 0 forks source link

Add support for manipulating user security via the IFormsSecurity service #1253

Closed RachBreeze closed 3 months ago

RachBreeze commented 3 months ago

Hello

Umbraco Forms v13.1.2

Hopefully I've missed a service. But looking at Umbraco.Foms.Core.Services and Umbraco.Forms.Core.Security it is not possible to manipulate user security. This would be really handy in the case of migrating Perplex Forms on Steroids from Umbraco 7 which has a table perplexUmbracoUser which details the start nodes for every forms user.

Appreciate this is probably not a strong argument for adding but am ever hopeful :-)

AndyButland commented 3 months ago

The services that Forms uses internally for manipulating user security records in the database are exposed as public interfaces, so I think if you wanted to do something with this programmatically you could.

See IUserSecurityStorage, IUserStartFolderStorage and IUserFormSecurityStorage; and IUserGroupSecurityStorage, IUserGroupStartFolderStorage and IUserGroupFormSecurityStorage (all in the Umbraco.Forms.Data.Storage namspace).

RachBreeze commented 3 months ago

Hi @AndyButland

Thank you so much I didn't check the Umbraco.Forms.Data.Storage namespace