In version 1.5.5 of AAM I'm introducing the Access Config feature.
Config is based on INI file format and follows its standards.
Logically whole config is divided on backend and frontend sections.
On current version of AAM you can specify only redirect. Please see example with description below:
[backend]
; Specify redirect if access is denied for specific resource
; This will enforce the redirect to specified URL or if it is userFunc it'll
; execute this function.
; PLEASE NOTICE! Custom userFunc should die an application or redirect to some URL
; by sending header, otherwise the application will through the Exception
; "Unauthorized Action"
; If redirect is valid URL then it'll redirect to that URL
; If redirect is number, it'll try to redirect to page or post with that ID by using WordPress function get_permalink
; If redirect has property userFunc it'll execute the userFunc
access.deny.redirect = "http://mydomain.com/wp-admin/dashboard"
[frontend]
access.deny.redirect.userFunc = "access_denied"