Using the Atom Publishing Protocol, also known as AtomPub, administrators can update profile entries or create and delete a profile.
The only supported methods for writing data to or modifying data in the Profiles database are by using this Profiles Atom administrative API, using the supplied Profiles TDI assembly lines, or by developing custom assembly lines using the connectors. Writing directly to the database, including using TDI database connectors to do so, is not supported and can lead to unforeseen consequences including data loss and application malfunction.
To assign roles to a profile, use the HTTP PUT method
To retrieve the roles assigned to a profile, use the HTTP GET method.