SETUP_ROLE_PARAMETER_ACCESS_MANAGE SETUP Endpoint
  /rpc/setup/?method=SETUP_ROLE_PARAMETER_ACCESS_MANAGE  
  Object: 309. Click here for more information.  
  PARAMETERS TYPE  
  DataReturn Text A comma delimited list of advanced search fields to be returned after a successful save
  Id Numeric  
  Remove Numeric Pass '1' to remove the item
       
  AccessMethod Numeric Optional. If set, then the restriction only applies for the specified method. Otherwise, it applies for the parameter for all methods. See examples below. Also see SETUP_METHOD_SEARCH
  AllowedValues Text (2000) A comma delimited list of values that the user is able to access.  Can also include [[user]], [[session]], [[contactperson]], and [[contactbusiness]] which gets dynamically changed to the logged on user.
  DisallowedValues Text (2000) A comma delimited list of values that the user is not able to access.  Can include [[]] tags as above
  Notes Text (2000)  
  Parameter Text (100) Mandatory.  Name of the parameter being restricted, eg status. Note: Currently only numeric parameters are supported.
  Role Numeric id of the role, see SETUP_ROLE_MANAGE
  Type Numeric 1=[All Method Types] (default),2=Manage Methods,3=Search methods. You can restrict users from being able to search for a particular value, be able to set a particular value, or both. See examples for more information.
  RETURN  
  id  
  EXAMPLE
1. Restrict a user from being able to search on all methods for area of 123
  • Set Parameter=Area
  • Leave accessmethod blank
  • Set type=3
  • Set disallowedvalues=123
2. Restrict a user to only be able to see and update Orders with a status of completed(1).
  • Set Parameter=Status
  • Set accessmethod to id of PRODUCT_ORDER_MANAGE
  • Set type=1
  • Set allowedvalues=1
3. Prevent a user from being able to discontinue a product, but still allow them to search for such products.
  • Set Parameter=Status
  • Set accessmethod to id of PRODUCT_MANAGE
  • Set type=3
  • Set disallowedvalues=6