We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AccessDetails doesnot contain a definition for FileRules and FolderRules

Thread ID:





151131 Jan 31,2020 03:07 PM UTC Feb 5,2020 06:31 AM UTC ASP.NET MVC - EJ 2 1
Tags: FileManager
Asked On January 31, 2020 03:07 PM UTC

could you please let us know how can weaccess FileRules and FolderRules types

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On February 5, 2020 06:31 AM UTC

Hi Mahesh, 
Greetings from Syncfusion support. 
We have checked your reported query about access rules in FileManager component. You can define the access rules in controller. Using access control, you can restrict the access permission of user based on the role.  
Refer the below code snippet for defining the access rules. 
public HomeController() 
public AccessDetails GetRules() 
AccessDetails accessDetails = new AccessDetails(); 
List<AccessRule> folderRule = new List<AccessRule> { 
// For Default User Read and write permisions is deny for documents folder.        
  new AccessRule { Path = "/Documents", Role = "Document Manager", Read = Permission.Deny, Write = Permission.Deny, Copy = Permission.Allow, WriteContents = Permission.Allow, Upload = Permission.Allow, Download = Permission.Deny }, 
  new AccessRule { Path = "/Documents/*", Role = "Document Manager", Read = Permission.Allow, Write = Permission.Allow, Copy = Permission.Allow, WriteContents = Permission.Allow, Upload = Permission.Allow, Download = Permission.Allow }, 
   accessDetails.AccessRules = folderRule; 
   accessDetails.Role = "Document Manager"; 
  return accessDetails; 
For your reference, we have prepared a sample with access control functionality in FileManager component. 
We have considered update our documentation with more information on Access control support in File Manager in our upcoming release. 
Please let us know, if you need any further assistance. 
Shameer Ali Baig S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon