Custom User Profile Attributes with Oracle Content Management and Free Widget.
Sometimes you need the ability to add custom user profile attributes for users to manage such as User Image, Location, Address, Locale and more - did you know you can use the Oracle Content Management Rest API for users and groups to assign custom properties against accounts and use the OCM profile within your site!
Here is a screenshot of the OCM Profile screen below - you can easily consume and manage all of the profile data and manage your image throught the APIs including adding your own props.
Official REST API
User Management Profile Examples with OCM
Here are the endpoints for managing a user profile to create, update and read user properties.
Uploading and managing a User Profile Image
You can send a file to the pictures API endpoint referencing the userID as the pictureID.
Reading the user Profile Image
There are two ways to do this but here is the official way - I'll discuss in an later blog post on how you can use the undocumented front & back channels OCM provides which for me is the better approach..
Adding a Custom Profile property
You can check to see if the user propery exists if it doesn't create it with this command.
Reading User Profile Properties
Here you can call all the user properties; great for generating a user profile page.
Demo Widget (In Development...70%)
Now we have the basics covered - lets pull this all together and create a mini profile widget that enables users to:
- Create and manage their social links.
- Change their profile image.
- Update their name & job title.
Download and View source @github
I hope this has helped - show some cool features hidden away in the platform.