How do I assign an Analysis Authorisation to a user?

Analysis Authorizations are directly assigned to a userID in transaction RSECADMIN or via a PFCG role using the S_RS_AUTH object.