Questions tagged [role]
396 questions
3
votes
1 answer
NetSuite Customize Contact -> Role list
In NetSuite need to add new Contact -> Role(s) the the list of roles a Contact can have. Where is this done at?

Joshua Fricke
- 265
- 2
- 14
3
votes
1 answer
sql server 2012 - can't grant on select on multi-statement table-valued function
It's my first question here, so I say: hallo!
I have a multi-statement table-valued function (called fn) which (of course) returns a table.
I also created a database role (called dbr).
I tried to add permission
my dbr can select from my fn.
So I…

mtz
- 33
- 4
3
votes
1 answer
Chef get node's current role
I have a bit of code like this that makes an array of all nodes matching the search criteria. I have a whole bunch of different flavors of load balancer, each of which has it's own Chef role.
I can see what I want with knife node edit max_data_lb-1
…

Brando__
- 365
- 6
- 24
3
votes
3 answers
Spring Boot Role Based Authentication
I have a problem concerning Spring Boot role based authentication. Basically, I would like to have users and admins and I want to prevent users from accessing admin resources. So I created a SecurityConfig class:
package test;
import…

Daniel Wehner
- 223
- 1
- 2
- 7
3
votes
3 answers
Discord.NET How do I grant an user a role?
So I've been coding my discord bot and wanted to add a function to give an user a specific role like you are a player in a game and you type in a "cheat code" it grants you the cheater role. How can I do this? Thanks for helping.

justarandomdiscordguy
- 39
- 1
- 1
- 2
3
votes
2 answers
Ansible passing variables to roles
I would like to create folders, users and groups depending on the environment and hostname.
My playbook passes the environment and hostname to the role, which is supposed to pick the correct data from the defaults/main.yml file.
Playbook:
roles:
- {…

Granolaboy
- 323
- 1
- 6
- 15
3
votes
1 answer
Role based OAuth2 authentication for Service provider in WSO2
I have added a service provider in wso2 and configured Inbound authentication as oauth2 login. Also added users in the user store(ldap). Users are able to login. However I need to restrict the users based on service provider role. Also I added role…

Santhiya
- 351
- 3
- 12
3
votes
2 answers
How to set constants in an ansible role?
In an ansible role, i need to define constants for some paths, not changeable by users in their playbook.
Here's my need:
the role will have a {{app_base_path}} variable (changeable by user), and then i want to set 2 constants:
app_instance_path:…

Jérôme P.
- 95
- 7
3
votes
2 answers
Ansible - variable changing it's value even though the condition is not met
I have a role that I need to use for more values. For each task within the role I register a variable: checkdeps (it's the same for all tasks within this role - during a run it always has at least one value/output - I need it like this because the…

ady8531
- 689
- 5
- 13
- 24
3
votes
4 answers
ASP.NET custom role management
There is Role Management feature in ASP.NET
It works on local development machine.
For our project we need customers admin to be able to create new users and manage their roles.
So, basically same what aspnet_regsql.exe does.
Question is
Should we…

Alex
- 33
- 1
- 3
3
votes
1 answer
How to get subscription id programmatically in a Azure Role?
I have this Worker Role which makes use of REST Management API (through https://github.com/Azure/azure-sdk-for-net), whose the most basic pre-requisite is the Subscription ID.
Is there a way to get the Subscription ID from a running (worker) role?…

Igor Gatis
- 4,648
- 10
- 43
- 66
3
votes
2 answers
Chef, override attributes not applying to recipe
This is the cookbook I downloaded:
https://github.com/edelight/chef-mongodb
I installed Chef server, Chef workstation, and have a testnode ready to bootstrap.
A role I created:
$ knife role create mongodb_standalone_testproj
JSON format:
{
…

Howard Lee
- 977
- 1
- 11
- 20
3
votes
2 answers
Why doesn't Moose role application with method modifiers work in my code?
I have a Role and several classes that mix-in the role. The Role class loads all of the implementing classes so that anything that imports Blah can use them without typing a lot of 'use' lines.
package Blah;
use Moose::Role;
use Blah::A;
use…

rjh
- 49,276
- 4
- 56
- 63
3
votes
1 answer
How to create roles and run capistrano tasks for specific roles?
Here is my production.rb in config/deploy
Instance Details
server '198.61.179.237', :web, :app, :db, primary: true
server '198.61.228.160', :file_server
# Rails Environment
set :rails_env, 'production'
And from deploy.rb
namespace :check do
…

Sahil Grover
- 1,862
- 4
- 26
- 57
3
votes
2 answers
how to render dynamic menus based on logged user role on symfony2
Which is the best practice to generate in a template a dynamic menu (the menu will be present in all the other app's pages) depending on the user role?
i'm using this in my main template:
{{render(controller('AcmeMainBundle:Sidebar:show'))}}
and…

bassojf
- 43
- 6