BE READ-ONLY Access
 

BE READ-ONLY Access

4 posts, 1 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    425 posts
    Registered:
    29 Jun 2018
    08 Apr
    Link to this post
    Is there any way to only allow READ-ONLY access to a BE without using the SmartDB users table? We have our own application users and do not want certain users to be able to make any updates. 

    Thank you.
  2. Mike Fechner
    Mike Fechner avatar
    352 posts
    Registered:
    14 Sep 2016
    Answered
    08 Apr in reply to Roger Blanchard
    Link to this post
    If you implement your own Consultingwerk.Framework.Authorization.IRequestAuthorizationProvider service and register it in a service.xml you can validate the requests based on whatever you want.

        METHOD PUBLIC LOGICAL IsFetchDataRestricted (pcEntityName AS CHARACTER,
                                                     poRequest AS IFetchDataRequest):

    IF SessionManager:UserName <> "Roger" THEN RETURN TRUE. ELSE RETURN FALSE.

    END METHOD.
  3. Roger Blanchard
    Roger Blanchard avatar
    425 posts
    Registered:
    29 Jun 2018
    08 Apr in reply to Mike Fechner
    Link to this post
    Thanks Mike!!
  4. Roger Blanchard
    Roger Blanchard avatar
    425 posts
    Registered:
    29 Jun 2018
    09 Apr in reply to Mike Fechner
    Link to this post
    Works great Mike!!

    Thank you.
4 posts, 1 answered