Django livesettings - greyed out group - django

I'm using django-livesettings to provide additional parameters to be set by the admin.
One thing I'd like to do is have groups greyed out according to whether they've been enabled or not.
An example would be enabling either pop3 or imap mail settings, perhaps via a radio button. If the admin enables pop3 then all the imap settings are greyed out.
Another example might be just a simple group enable checkbox. If the group isn't enabled then there's no need to enter further info.
I'd like to make it clear which settings are in force. Is this possible?

Sounds like something, you'd need to do with JS/CSS. Use a project-specific template override with settings.TEMPLATE_DIRS or go fork the project at Bitbucket and add your feature.

Related

Google reCAPTCHA: how to generate captcha token on the server side

I've added the Google reCAPTCHA enterprise to my auth endpoints, and now I want to cover them by integration tests. To do so, I need to generate a valid token and pass it to requests. But I can't find in the docs how to do that, they only offer to create a separate reCAPTCHA key for testing environment which is not suitable for me, because I want to test production too.
I am not sure if I understood you, but I utilized test keys for testing Recaptcha using Cypress , here you can find them and more information about what you want
Copied from some source
Hello,
If you’re getting new reCaptcha keys each time you create a site then I’m afraid to say you’re doing so improperly for this scenario. Hopefully, the below instructions can help:
Log into your Google Admin Console.
Browse to the API key that you have set for your website. If you have more than 1 reCaptcha in your Admin Console you may need to click the dropdown next to the “You have ‘x’ site(s)”.
Once you’ve found your specific reCaptcha API, you’ll want to click the Settings gear icon at the top right. This will bring you to your API settings where you can grab your reCaptcha keys and add additional domains to the allow-list.
On the Settings screen you should see a list of domains in an allow-list with an input box to enter additional domains. There should be a plus sign next to this input box. Enter your domain and click the plus sign.
Finally, scroll to the bottom of the page and click the blue “Save” button. This will tell Google to apply your changes and may take up to 5 minutes to be put into place.
This will tell Google to allow the same reCaptcha keys for multiple domains specified in this allow-list on the Settings page. For further help, we’ve created an Imgur Album of a few screenshots that may help you along your way:
https://imgur.com/a/aT8J6Uu
Hopefully, with the above instructions, you’ll be able to add in your additional domains to the allow list. Should you need further assistance, we suggest reaching out to Google G Suite Admin Support.
Hope it will solve your issue
If it still didn't work in your scenario you can use the dynamic way of applying keys like saving keys into the Environment variable and based on the current environment it will be changed dynamically

Is there a way to disable "Advanced Settings" option in Dynamics 365?

Want to disable/hide the "Advanced Settings" option under Settings in Dynamics 365 as role based like no one should be able to access it or see it except system administrators. Is there anyway to do it ? If there is, would like to know the detailed steps.
It's not possible to hide an entry in that menu or disable the direct url to access that settings.
it is not possible to disable the advanced Settings. Based on security role you can manage user group to see no of fraction feature into Advance Settings menu.

Django staff user can't see any application

I have a group of user called "support". I want them to be able to log in the django admin site, view and modifiy the instances of the class "HelpContextual" of the application "support".
So I created a group "support" with the permission support | help contextual | Can change help contextual. The users can log in the django admin site, but they can't see any application.
I tried to give them all the permissions of the "support" application, but still, they can't see the support app. If I use a direct link to change a "help contextual" like this one : admin/support/helpcontextual/5/change/, I get a 403.
I feel like I'm missing something obvious... Can you point it to me ?
Make sure you have done the following steps.
Add group `Support.
Under available permissions select support | help contextual | Can change help contextual from Available Permissions and then make sure you have clicked on the arrow pointing to Change Permissions. This will move the specific permission to Change Permissions.
Click Save.
Create or open users.
Select Active and Staff Users.
Select Support from Available Groups and click the arrow pointing to Chosen Groups. This will move the Support group to Chosen Group.
Don't make any change to User Permissions unless you want to grant additional permissions to any specific user.
Click save.
Have the user logout and log back in.
Answered here https://stackoverflow.com/a/7021995/626748
I had a custom backend and removed the default django authentication backend...

Remove deactivated users from Okta groups via Postman

We've done a poor job of removing deactivated users from Okta groups. I would like to clean that up but there is now way to do so via the UI. I tried this in Postman but receive an error that the HTTP method is not supported by the endpoint.
{{url}}/api/v1/groups/00g1avm8w61q5ChdB0h8/users/users?filter=status eq "DEPROVISIONED"
I also tried:
{{url}}/api/v1/groups/00g1avm8w61q5ChdB0h8/users?filter=status eq "DEPROVISIONED"
and
{{url}}/api/v1/groups/00g1avm8w61q5ChdB0h8/users/filter=status eq "DEPROVISIONED"
Does anyone have any suggestions?
If you go to the deactivated user, check the groups tab and there should be an X to click to remove the user from groups even though in group management interface it only lists active users.
It can be done via the UI, it's just not obvious. It's possible this was changed since the question was asked but given the UI's a bit confusing it's still worth putting out there.

Getting CFAdmin Mail Server in code

I've specified a Mail Server in my CFAdmin I want to get it in my code. Is it possible somehow?
I have to concede I've never had to specifically do what you need to do, but CF has an Admin API. Details are on the Administrator API page in the docs.
Relevant extract:
mail.cfc Manage ColdFusion mail settings.
I reckon that's what yer after.
Unlike datasources, mail servers are used automatically - you don't need to specify them.
However, you can also supply the assorted properties for a mail server directly as attributes on a cfmail tag, which then overrides those in the administrator for that instance only.
(If this isn't what you're asking, you need to edit your question to clarify and add more information.)