Skip to main content
October 13, 2015
Question

How to assign a role to File Upload widget? Only the Administrator should be able to upload and see the file.

  • October 13, 2015
  • 1 reply
  • 1958 views

I have to give privilege that only Administrator only should be able to access, view or upload the file in the File upload widget.

Or is there any other widget in which we can perform the above thing?

    1 reply

    1-Visitor
    October 13, 2015

    For instance you can create a FileRepository to whom Administrator it's the only user with permissions. The widget in itself doesn't grants/denies the access to the FileRepository.

    1-Visitor
    October 13, 2015

    Beyond that you can use the CurrentUser to determine the Group of the User (GetGroups) to then drive either visibility of the Widget or even the name of the Mashup that a user will see. And drive the Menu items.

    1-Visitor
    October 13, 2015

    Hi Pai,

    Yes, but that doesn't blocks to a "expert" user to be able to enter on the files through REST API...

    Carles.