Is there a tutorial or guide for setting up a role...
# box-products
o
Is there a tutorial or guide for setting up a roles based system in Coldfusion using Coldbox and cfSecurity?
d
Those are the docs
You’ll find role based docs there
A guide or tutorial is probably in cfcasts.com
o
Do I have to do anything with the schemas? I don't see any mentions of it
@Daniel Mejia This is what I came up with so far: resources/database/migrations/XXXX_XX_XX_XXXXXX_create_roles_tables.cfc
Copy code
component {

	function up( schema, query ){
		schema.create( "roles", function(table) {
			table.increments( "id" );
			table.string( "name", 32 ).unique();
			table.string( "description", 32 ).unique();
		} );
	}

	function down( schema, query ){
		schema.drop( "belts" );
	}

}
Do I need a join table or do I have to modify the user schema? If I have to modify the user schema what do I have to do?
d
Oooh sorry brother. I don’t do migrations. I just started using cbsecurity last week and it’s still not in production. Plus I’m only using it for a single global api key.
o
it's ok, you were still helpful
Happy Holidays!
🎄 1
👍🏼 1
d
I do know you have to provide your own User Service which should have a special method that provides the logged in user’a permissions list.
o
@bdw429s Do you have any knowledge on roles using cbsecurity specifically the required migrations?
b
Nope
Which is why I didn't chime in here 🙂