{"id":32436828,"url":"https://github.com/notactuallyterry/discord-authentik-rolesync","last_synced_at":"2026-07-07T06:31:15.257Z","repository":{"id":319457933,"uuid":"1078741256","full_name":"NotActuallyTerry/discord-authentik-rolesync","owner":"NotActuallyTerry","description":"Hastily-ported version of my Discord to Keycloak role sync bot, now for Authentik!","archived":false,"fork":false,"pushed_at":"2025-10-18T10:34:13.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T06:35:06.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotActuallyTerry.png","metadata":{"files":{"readme":".github/README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-18T10:20:26.000Z","updated_at":"2025-10-18T10:34:17.000Z","dependencies_parsed_at":"2025-10-19T06:35:15.444Z","dependency_job_id":null,"html_url":"https://github.com/NotActuallyTerry/discord-authentik-rolesync","commit_stats":null,"previous_names":["notactuallyterry/discord-authentik-rolesync"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/NotActuallyTerry/discord-authentik-rolesync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotActuallyTerry%2Fdiscord-authentik-rolesync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotActuallyTerry%2Fdiscord-authentik-rolesync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotActuallyTerry%2Fdiscord-authentik-rolesync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotActuallyTerry%2Fdiscord-authentik-rolesync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotActuallyTerry","download_url":"https://codeload.github.com/NotActuallyTerry/discord-authentik-rolesync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotActuallyTerry%2Fdiscord-authentik-rolesync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35218117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-25T23:55:02.543Z","updated_at":"2026-07-07T06:31:15.251Z","avatar_url":"https://github.com/NotActuallyTerry.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Roles to Authentik Groups sync\n\nThis is a python application that will sync Discord Roles to Authentik Groups.\n\nFor this to work you need to:\n1. Implement the [Discord Authentik Identity Provider](https://docs.goauthentik.io/users-sources/sources/social-logins/discord/)\n2. Create a User Property Mapping that stores their Discord ID as an attribute, under `attributes.discord.id`\n3. Add a `discord_role_id` attribute to each Authentik group you'd like to sync, e.g. `discord_role_id: \"940183386595655771\"`\nNOTE: Make sure to enclose the ID in quotes, otherwise Authentik will round the number \u0026 break the link!\n4. Create an Authentik service account, create a role \u0026 assign it the following permissions:\n   - `Add user to group`\n   - `Remove user from group`\n   - `Can view Group`\n   - `Can view User`\n   - `Can view User OAuth Source Connection`\n5. Create an API key (under Tokens and App passwords), assigning it to the above service account\n6. Create a Discord Application ([here](https://discord.com/developers/applications)) \u0026 add the bot to your server.\n   - Make sure it has the Server Members intent, otherwise it won't receive role membership updates\n\n## Example config\n\n```yaml\n      DISCORD_BOT_TOKEN: MZ1yGvKTjE0rY0cV8i47CjAa.uRHQPq.Xb1Mk2nEhe-4iUcrGOuegj57zMC\n      DISCORD_GUILD_ID: 444746940761243652\n      AUTHENTIK_HOST: https://authentik-instance/api/v3\n      AUTHENTIK_API_KEY: I2khOuRBfgZzohV8fQAbJcRXYIJIuXKWe1Q88OTqD8lkOcEoqcwz7z9XIoGJ\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotactuallyterry%2Fdiscord-authentik-rolesync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotactuallyterry%2Fdiscord-authentik-rolesync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotactuallyterry%2Fdiscord-authentik-rolesync/lists"}