Is This A Right Way To Duplicate A Repo For A New User? - github-api

We need to duplicate a repo for a newly created user account. Are the following the right way to do it with the Github REST APIs?
Setup:
an admin user
an organization that the admin user belongs to
a private (?) template repo of the organization
And all requests are submitted by the admin user other than those are specificated.
create a user account
(get the organization of the admin)
create a team in the organization
add the newly created user to the newly created team
create a repo for the user by using the template repo (it seems to be doable this request is submitted by the newly created user, but not the admin user)

Related

Keycloak, First Broker Login: if no account exists ask user to link to an existing account or create new

How to configure First Broker Login to achieve the following behaviour when user sign in with Social IdP:
User (with on account in Keycloak) clicks on Sign in with Google
button.
Keycloack doesn't automatically create a new account for
the user but suggests to options: Link to existing account or Create New Account
When Link to existing account user should click on sign in button of other social IdP with which user's Keycloack account was created before.
When Create New Account the new Keycloak account is created.
Why do I need this? - Different socials accounts of the same user may be registered using different emails, hence I want to avoid situation when the same user will have two accounts in my app.
So far, I disabled the Automatic user account creation by updating First Broker Login flow following the documentation, but I don't know how to configure the flow to show the user Create New Account option
Can anyone explain how I can do that?

npmjs create username that created as organization before

Recently I created organization in my account, for example 'my_org' so I can publish package under 'my_org' scope. But decided to create separate account (by org's email) with username/scope 'my_org'. So I deleted the organization that I created before then tried to create new account with username that I said. But in register page of npmjs I got this error: 'that scope name is already in use'
Thanks for any help!
Solved by help of dear npm support. Sent email to them and described my state. As I said when u create organization/scope in account and after you delete it, you can't create new account same name as organization. I sent email and helped me create new account. I sent my new account's email to them and so on.

Notification when a new user requests to access a Project in Azure DevOps

When someone requests an access to a project in Azure DevOps(ADO), which usually happens when Project admins send a link to user via email or chat and they request for access by clicking on that link, we want the notification to add the user to organization should go to the org Admin and for the project it should go to the Project Admins.
Currently it is going to Project Collection Admins if the user is not in the ORG and no email is sent to the Project Admins. This is if the user tries to access the project through a link and is not added to the ORG.
Currently, the notifications only can be triggered when an user who has been invited into the Azure DevOps organization as a member does some operations in the organization.
If a user has not been invited into the organization, he cannot access the organization, cannot do anything in the organization, so there will no any notification for this user.
If you really want the notification when an uninvited user is trying to access your organization, you can try to report a feature request on Developer Community.
That will make it possible for you to interact with the appropriate Product Group, and make it more convenient for the Product Group to collect and categorize your suggestions.
[UPDATED]
When an uninvited user is trying to access a private project in an organization, This user first should gain the access to the organization, then to the project.
So, this user should first get the grant from the PCA (Project Collection Administrators) to access the organization, then get the grant to access the project.
The PCA also can grant users to access any projects in the organization. But the Project Administrators may do not have permissions to grant users to access the organization.

Login an existing user in hyperledger fabric

I want to create a UI where i want to login the user which is already created in fabric.Tried using this(https://github.com/hyperledger/fabric-samples/tree/release-1.3/balance-transfer) but as per the login request sample API, it is always creating a new user.
Any sample or ideas to login the existing users with fabric node SDK.
The new user will be created if it does not find the same user in the wallet. Make sure when you create a user, you are keeping the identity in the wallet.

How to restrict project admin only to create new repository, the master branch in azure devops

Also i need to know how to make project admin to get notification when a contributor makes a pull request in azure devops.
How to restrict project admin only to create new repository, the
master branch in azure devops
It's is not possible to modify any Permissions to Project Admin by default Project Admin has all the permissions (As the name indicates he/she will be the project admin)
You will see the below error when you tried to modify the permission
Also i need to know how to make project admin to get notification when
a contributor makes a pull request in azure devops.
ProjectSetting->Notification->New Subscription->Code(git)->A pull Request is created or updated
Under the Deliver to you have the options called
Members of xxx by role
Team Preference
Custom Email address
Members of xxx Team
SOAP
You can set this to a custom email address and point the project admin email address there.

Resources